Tip Bank

DevX

Errors Using Microsoft Word 6.0

Question: When I edit my .RTF file in Microsoft Word 6.0, the help compiler gives me an error saying “This application has violated system integrity due to an invalid fault

DevX

Using Multiple Groups of Option Buttons

Question: I need to place multiple option buttons on a form. I alsoneed to be able to have two buttons selected at all times.I can do this with multiple frame

DevX

Illegal SetFocus Call

Question: Sometimes when I call Text1.SetFocusit returns me an “Illegal function call” error. Any idea why? Answer: Normally, if the Form is not visible, you can’t call SetFocus to it.

DevX

Passing Parameters by Reference

Question: I have a function in a DLL that I want to call from VB program. The Dll function has few parameters. Some of them should be passed from vb

DevX

Adding Scrollbars

Question: How do I add scrollbars to a picture box control?i.e I want to be able to scroll through a picture box which containsmore than one screen of graphic and

DevX

Implementing a Toolbar

Question: I am using VB 3.0 professional edition. I would like toimplement cut/copy/paste on a toolbar. My form has multipletext boxes. If the user wants to paste to a field,

DevX

Selecting File from File List Box

Question: I put a drive box, a directory list box, and a file list box on the form, with the intention of being able to select an *.ico file from

DevX

Formatting a Disk

Question: How do I issue a disk format command from myVB code? Do I simply shell to DOS? Answer: That’s what I would recommend. Format is a .COM file, so

DevX

RecordCount Incorrect

Question: VB reports the wrong number of records from an Access database with the RecordCount property. The same query to dBase files reports the correct number of records. What is