devxlogo

The Latest

Saving Information

Question: How do you save information?Say a made a game, and i wanted high scores, how do I want to do that? Answer: You could do it a number of

Creating 2 Dimensional Array

Question: I am trying to design a telephone directory and am unable to set the 2 dimensional arrayas an unknown number. How do I do this? Answer: The best way

Declaring Form Objects

Question: If i declare a new form as an object variable,Dim NewForm as Formset NewForm=form2NewForm.ShowOnce I have a one of those forms, how do refer to that particularinstance of the

Removing Filename Reference

Question: I have a form containing a Picture Box control.This control currently contains a bitmap i.e. the pictureproperty contains a filename. How do I change the picture property back to

Oracle via ODBC

Question: I am using Visual Basic as my front-end tool to read an oracle 7 database residing on an oracle network. I have completed the connection stage. I am using

Access 2.0 Requirements

Question: I have heard a vicious rumour going round that any programs I write in VB 3.0 using Access 2.0 will only be able to run on computers that have

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

Adding Leading Zeroes

Question: A control record value for next_order_num will contain the value “00009998” when you first get the control record file. Each time you write the next_order_num field back into the

Type Declarations

Question: I define a user-defined type as follow..Type Complex Re As Double Im As DoubleEnd TypeI created a function like this…Function CompAdd( a As Complex, b As Complex ) As

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

One Large Program vs. Several Small Programs

Question: We have 4 good size programs, and we are considering consolidated theminto 1 single program. Combined, these 4 programs would have about 60 forms and a total of 500

Buffer Return Problems

Question: I am feeling very sick and was wondering if you could help me. I am trying to access the Lan Manager 2.1 API and am having difficulty get return

Saving Forms as Text vs. Binary

Question: This may seem a stupid question, but I cannot figure or find it out anywhere… I have been having trouble with the setup wizard saying that my forms have

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,

Searching for Apostrophes

Question: When using VB4 and the Jet Engine with Access 2.0, I do I execute an SQL query that searches for a string that contains the apostrophe ? Answer: If

Opening and Reading a File

Question: Can you please send me the code to open a file using the common dialog box – not just the code to open the dialog box but to actually

Moving Controls on Screen

Question: I was wondering how you can move pictures and controls from one end of a screen (that part I know) and then have it go back or down? Answer:

Displaying Help

Question: How do you use the Common Dialog Box help. When I set all of the parameters and tried it, it didn’t display my helpfile. Answer: Did you set the

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

Entering Large Amounts of Text

Question: I have a problem with writing text in Visual Basic. I would like to enter several hundred pages of text into my program, Any ideas of how to do

Opening MAK Files with VB 4.0

Question: In working with VB4 I find that if I double click on a project file (.mak or .vbj) the system always starts upVB4 in 16bit mode. I am wondering

Updating Bound Controls

Question: In my program from a combo list one can select an item (that happens to be a table in an MDB file)so that the DATA1.recordsource matches the item selected

Dynamic Runtime Creation

Question: Is it possible to add elements to a control array of an object (ex. SSPanel) in a module that is notthe form’s module. My goal is to be able

Closing DOS Window When Completed

Question: I have a real problem that in windows 95 when a dos shell is finished it does not close. I use these dos shells when interfacing to old equipment

Creating Win95 Explorer-like Dialogs

Question: Are there common dialogs in Win95 like file open/save? I wish to put in my apps the ability to use long filenames which Win95 supports. Answer: Here is the

Putting Controls on a TabStrip

Question: The number of Tabs are determined at run time. Control Array of text boxes are established on Tab 0 at design time. Each tab is to contain the same

Modifying Startup Project

Question: Is there a way to make VB skip that annoying new project it displays on startup. I work on existing projects 80%+ of the time. It would be even

Searching on Numerical Fields

Question: When using the FindFirst method I seem to be able to locate only records which are defined as strings using a variable in the search pattern. When I am

Disappearing Controls

Question: At apparently random times, some controls disappear frommy form. Not all of the controls disappear. Minimizingand then restoring the form, as well as clicking onthe ‘invisible’ controls, brings them

Creating Dynamic SQL

Question: I’m trying to develop a dynamic query handler within VB that will prompt users for parameters as set up in the parameter list in MS Access (v1.1). I wish