Tip Bank

DevX - Software Development Resource

Using the WITH Operator

Question: This code is in pascal how can i implement it in VB ? with treasuremap do move Answer: VB 3 does not support the With operator. (version 4 does,

DevX - Software Development Resource

Creating Simple Animation

Question: How do I get four simple .bmp pictures to animate?Could you maybe give me an example? What the picturesare is a green scare then it would turn into a

DevX - Software Development Resource

Executing Programs Stored in Variables

Question: Is it possible to store a MS-DOS pathname in avariable, and run the program at that path withthe shell command? Answer: The Shell command can be given a string

DevX - Software Development Resource

Handling Dependent Processes

Question: I need execute some commands to rename/copy files. What is the best method of performing this type of function.I do not want to fire off a batch file, but

DevX - Software Development Resource

Intercepting Windows Messages

Question: I want to add a new item to the control box menu(or system menu). I add a new item using API’s likeAppendMenu and InsertMenu and both work fine, but

DevX - Software Development Resource

Advantages/Disadvantages of Using Sub Main

Question: Can you please tell me when do you use Sub Main and the advantages of using it? Answer: In certain programs, initialization code has to run before any windows

DevX - Software Development Resource

Using the CancelError Property

Question: You said there’s an example in the VB help file on use of theCancelError = true property. Where is it? In my app, I can get VB to generatethe

DevX - Software Development Resource

Problems With Single Quotes

Question: Single quotes are messing up my queries. What can I do to fix the following problem?Dim Criteria as StringCriteria=”Name LIKE ‘” & SearchName & “‘” ‘SearchName=”Sam O’Brien”‘At this Point

DevX - Software Development Resource

Exiting Windows

Question: How can I make my program totally exit Windows? When the user hits “Quit Windows”, I want Windows to exit. Answer: Use the ExitWindows API function. The declare statement