devxlogo

Tip Bank

Use Oracle Obfuscation to Encrypt Data Securely

Sometimes you need to encrypt certain data stored in your database?data like passwords and other condfidential information. Oracle Obfuscation is a technique in which data is encrypted or decrypted using

Draw a Rectangle Around the Toolbar Button

The following code draws a rectangle around the toolbar button when a user moves their mouse over it. This looks better if the Appearance property of the toolbar is set

Using the ostream_iterator()

The ostream_iterator() is useful for reading the elements of a container to the standard output or to a file. However, because this iterator works in conjunction with STL algorithms, it

Using the count_if() Algorithm

You can use the count_if() algorithm to count the number of elements in a container based on any condition. count_if() takes three arguments. The first and second argument areinput iterators

Format a Textbox String to the Correct Currency

This code allows you to format a textbox string to the correct currency in SQL Server, independent of regional settings or the user input decimal symbol: Public Function FormatMoney(ByVal strValue