Tip Bank

DevX - Software Development Resource

Why don’t destructors work on global classes?

Question: Why don’t destructors work on global classes? Answer: Actually, destructors do work in global objects. The problem is, they are invoked after the program has ended so you don’t

DevX - Software Development Resource

How do I get the TextBox to display

Question: How do I get the TextBox to display automatically at the end of text, instead of at the begining of the text? Answer: The answer is very simple. All

DevX - Software Development Resource

Problem Using Execute SQL in Microsoft Query

Question: In Microsoft Query I can’t seem to use the Execute SQL function. I’m learning SQL from a book called The ColdFusion 4.0 Web Application Construction Kit (Macmillan, 1998). The

DevX - Software Development Resource

User ID Scripts

Question: I need to write a script that tells me the last user_id entered on a table and then another script in order to allow me (or a user) to

DevX - Software Development Resource

Display the “Shut down Windows” dialog

To programmatically display the “Shut down Windows” standard dialog box you can use the SHShutDownDialog undocumented API function, whose declaration is: Declare Function SHShutDownDialog Lib “shell32” Alias “#60” (ByVal lType

DevX - Software Development Resource

How to apply the flat style to a toolbar

All recent Windows applications use a flat toolbar similar to Internet Explorer ‘s and Microsoft Word’s ones. Visual Basic 6 includes a Toolbar control that supports the flat look, but

DevX - Software Development Resource

Format a drive using an undocumented function

SHFormatDrive is an undocumented but simple API function that allows you to format a drive. This function simply opens “Format Drive” diaolog window. Being undocument you won’t find its Declare

DevX - Software Development Resource

Hide or disable the desktop icons

The Desktop is a window like any other window in the system, so you can hide/show and enable/disable it. The only details you need to know is how to retrieve