Tip Bank

DevX - Software Development Resource

Manipulating Strings

Question: I don’t know how to access individual characters in a string.ie. accessing single elements in an array of characters.Each time I try I keep getting Type mismatch. Answer: You

DevX - Software Development Resource

Using Global Variables as Counters

Question: I am trying to put a counter in my program which will keep track of how many times a command button is pressed.I know it is simple but I

DevX - Software Development Resource

Controlling Size of Form

Question: How do I control the size of a form? Answer: Either set it at design time, or use the Width, Height, Top, and Left properties to set the form

DevX - Software Development Resource

Generating SQL for List of Options

Question: This is the first time I visited your site, and its the best VB site I’ve been too! My question is, I’m writing a sql statement using Variables and

DevX - Software Development Resource

Finding Text in a Text Box

Question: I am looking for code or VBX that allows a user to use an inputbox to locate a word within a textbox. The textbox is connected to a Access

DevX - Software Development Resource

Deleting a Directory Tree

Question: I want to delete and entire directory tree. I do not knowhow big the directory is, how many sub-dirs that it has, etc.I am not using a form and

DevX - Software Development Resource

Dynamically Generating Variable Names

Question: I have a number of objects, say shapes, which I have named s1, s2 , s3, s4 , s5.I would like to refer to the shapes fillcolor property witha

DevX - Software Development Resource

Unload vs. Hide

Question: My application makes use of different forms.I call forms by ‘hide’ the current form and ‘show 1’ to showthe next one.When I want to return to the previous form

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