devxlogo

Tip Bank

DevX - Software Development Resource

Yeah, But Which Common Controls?

This fragment of code from the VB standard module shows the GetComCtlVersion function that retrieves the major and minor version numbers of the Comctl32.dll installed on the local system. Use

DevX - Software Development Resource

Custom Menu Accelerators

To set the shortcut key of a menu item to something other than what the VB menu editor displays, use this code in the Form_Load event of a form: Private

DevX - Software Development Resource

Disable Easily

You can easily give your check-box control a Locked property without making your own custom control. First, create a frame large enough to contain your check boxes. Clear the caption

DevX - Software Development Resource

Rotate an Object About a Point

You can rotate any object about a center using polar coordinates. Simply define your center Xo and Yo, which in this case is the center of a form. The amount

DevX - Software Development Resource

Determine List Item by Coordinates

I wanted users to be able to get a definition for each item in a list box by right-clicking on the item. Unfortunately, right-clicking doesn’t automatically select the item, so

DevX - Software Development Resource

Menu Properties Shortcut

You can set the properties of any menu item by selecting the menu item in the Properties window drop-down list. This is often faster than selecting the Menu Editor menu

DevX - Software Development Resource

Permission Error When Submitting a Form

Question: I have created a simple form, but when I try to submit it, a message appears saying that it doesn’t have permission. The CGI file is on my hard

DevX - Software Development Resource

Redirecting to a Frame Set

Question: How can you tell whether a Web page that a user loads is in a frame or not? If the page is not in a frame, I want to