Tip Bank

DevX - Software Development Resource

Centering a Form on the Screen

Question: How do I center a form on the monitor regardless of monitor resolution? Answer: The Screen object contains the properties of the current display. In the Form_Load event, you

DevX - Software Development Resource

Changing Default Title on Window

Question: I made a copy of a project for a new application. The problem is that each time a message box is displayed it has the old project name as

DevX - Software Development Resource

Changing Date Format

Question: I am having trouble saving dates into an Access 1.1 DateTime field. The aplication I am writing is for the European market, so international dates are a problem as

DevX - Software Development Resource

Generating Special HTML Tags

Question: I am trying to use Print# statements to create an HTMLtext file and VB3 that I am using keeps interpreting the HTML characters as Data Types and operators saying

DevX - Software Development Resource

Redirecting DIR Command Output

Question: How do I create the VB equivalent of the command belowDIR C: /S /B >MYFILE.LSTI need this routine for a program that keeps track of installedand removed files. Answer:

DevX - Software Development Resource

Multicolored List Box

Question: I have an input file whose structure consists of a code forforeground color, a code for background color, and some text.I’d like to display the text in a scrollable

DevX - Software Development Resource

Showing, Loading, and Unloading

Question: I have forms that I want to load, unload, and then load again. I use Show and Unload to do this. After I unload the form and try to

DevX - Software Development Resource

Creating a Rich Text Field

Question: How do I go about creating a RICH TEXT FIELD in VB ? Answer: This problem has been fixed in VB4…they included a rich textbox control. However, I don’t

DevX - Software Development Resource

Declaring DLL Functions

Question: A colleague wants to create a DLL using Borland C++ to callfrom Visual Basic 3.0 but she keeps getting an error message”Sub or Function Not Defined”.Do you know of