Tip Bank

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

DevX - Software Development Resource

ADO Disconnected Recordsets

Question: I am designing a three tier architecture framework. For passing data from one tier to another, I am using ADO disconnected recordsets. For Reading, Updation and Deletion, I create

DevX - Software Development Resource

DateAdd Function Parameters

Question: While using the dateadd() function to add the given number to an existing year, it adds the days instead of years if we use the command in the following

DevX - Software Development Resource

hWnd Attribute

Question: I have to make a programm to read DATA from a Card, the first function that I must call says: Function_name(hcaller As Long,…) This hcaller is an hWnd and

DevX - Software Development Resource

Display Small Decimals Using VBScript

It is common to have online survey results posted via an ASP page. While for the most part it will work fine, you have to be careful when your results

DevX - Software Development Resource

Scan and Clean Registry for Dangling Interfaces

If you are developing COM components that run under MTS (Microsoft Transaction Server) then during the development phase, you will notice that dangling interfaces are often present in your system

DevX - Software Development Resource

Show the Standard File Properties Dialog

If your program has an Explorer shell-style interface, you probably want to supply the standard File | Properties dialog. Do this by using the ShellExecuteEx API function: Private Type SHELLEXECUTEINFO