Tip Bank

DevX - Software Development Resource

Const & Efficiency

Question: Can you tell me which of these implementations is more efficient and why, assumming this function cannot be inlined and is called often? First option: int even( int &val){if

DevX - Software Development Resource

JOptionPane

Question: When creating an input dialog box with JOptionPane.showInputDialog, isit possible to have a masking character, such as the * for password input? Answer: As implemented in the Sun JDK,

DevX - Software Development Resource

Columns ListView Control

Question: How can I insert an item into different columns? Answer: To insert data into multiple columns, you use the same command as for single columns, except that in your

DevX - Software Development Resource

Open the list portion of a ComboBox control

To programmatically open and close the list portion of a ComboBox control, all you need is sending the CB_SHOWDROPDOWN message to the control. Here is a routine that encapsulate the

DevX - Software Development Resource

Don’t stop timers when a MsgBox is active

Not all developers know that Timer controls in compiled VB5 and VB6 applications aren’t stopped by MsgBox statement, so the Timer’s Timer event procedure is regularly executed even when the

DevX - Software Development Resource

Check whether a form is loaded

You can load several instances of the same form, but VB doesn’t let you determine how many forms of a given class are currently loaded. You can work around this

DevX - Software Development Resource

The Advantages of XML Over CSV

Question: What is the advantage of XML over say, a comma delimited file? If you’re using it for data transfers between platforms, I would think that always having to explicitly