Tip Bank

DevX - Software Development Resource

Remove Margins from the Browser

Suppose you want to put the contents of a page right up against the edges of the browser’s viewport. While you can force this using absolute positioning, there is a

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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