Tip Bank

DevX - Software Development Resource

Scrollbars and 3-D Effects on Non-MDI Forms

Standard VB forms don’t support a scrollable client area. Normally, when one is needed, programmers resort to convoluted solutions such as filling the client area with a picture box, placing

DevX - Software Development Resource

Loading Database Name at Runtime

Question: I have used several ADO data controls as well as one data environment designer in my app. This appears to “hardcode” the path to my database forcing me to

DevX - Software Development Resource

Passing an ADO Connection Object

Question: I’ve made a VB ActiveX DLL and defined a class and some methods to perform some database operations. I pass an ADO connection by reference to this class from

DevX - Software Development Resource

VB and Oracle: Use ADO or ODBC?

Question: What’s the consensus as to whether it is better to use the ADO native driver, or use the ADO ODBC wrapper with Oracle? Answer: Microsoft now provides a native

DevX - Software Development Resource

Objects

Question: When you click on the right mouse button over a file name or folder, you get a menu which allows you to select Properties. Is there any way to

DevX - Software Development Resource

Tab Strip use

Question: How do you put different objects in a TabStrip? I can make it but once I add something to it in the preview area, it shows up on all

DevX - Software Development Resource

Command Button Double-Click

Question: We have users who routinely double-click on the command buttons. What is the best way to ensure that the code is only fired once? Answer: One approach would be

DevX - Software Development Resource

Dynamic Control

Question: How can I create dynamic controls, such as a textbox, without a basic control in the form ? Answer: In VB6 you can add new controls to the Controls

DevX - Software Development Resource

VB5 – Is the Format Function Y2K Compliant

Question: I am using the format function to format a date entered by the user. My machine’s short date setting is mm/dd/yyyy. My OS is NT 4.0 Format(25/05/01,”Short Date”) gives