devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Getting Available Disk Space

Question: I am looking for a way to determine the numberof bytes on a hard drive. Preferable I’d liketo know the total bytes on a drive and the bytes used

Dynamically Positioning Controls at Runtime

Question: It is easy to use control arrays to load controls inside a container. Now the problem is I do not know how many containers e.g., groups of option buttions,

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

Right-Justifying Output

Question: My VB program produces as output, paper reports such as Income Statements and Balance Sheets. How do we get the numbers to print as they should, that is, dollars

Getting Started

Question: We have a big complete hospital system written in ClipperWe had looked at VO, but that does not seem to be the way to goWe will now concentrate on

Creating Delays

Question: Can you suggest ways to delay sending keystrokes to the external application? I’ve tried inserting ‘For-Next’ loops of different durations but without success. Answer: Try a timer control. That

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

Converting 4.0 Files to 3.0 Format

Question: I use version 4.0 and the school I go to uses version 3.0. I use windows 95 and they use windows 3.1. I know you can convert a 3.0

Creating Help Files for VB

Question: I am new to Visual Basic and wanted to know how to write those nifty little help files. Answer: Help files are fairly easy to create. All you need

Masked Edit Control: Clearing the Text

Question: Could you tell me how to clear a MaskEdit Field? Answer: To clear a masked edit field’s text, you first have to set the mask to “”, then set

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

Finding User Directory for Microsoft Mail

Question: I’m in the process of refining a program I wrote. What I need to do is find the user’s mail directory on a Network server. To do this, the

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

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:

My Nightmare, and an Apology

rom 1981 through 1986, I taught high school. I was fresh out of college (OK, a semester of engineering grad school which “didn’t take”), didn’t

Seeing the Silverlight

icrosoft has officially entered the space of rich interactive browser development with a new product called Silverlight. To better understand what Silverlight is you simply

Creating Web Sites with ASP.NET 2.0

rom basic, static HTML pages to totally data-driven and data-centric Web applications, the demands on a Web developer are much more complex and demanding than

Working with Nullable Types in C#

orking with value types was sometimes awkward in .NET 1.x, because they could cause serious problems in applications that retrieved data from database tables containing

Visualizing Data: Self-Documenting Ant files

I have always been fascinated by informational graphics. Mathematicians aside, most people find properly rendered information graphics easier to assimilate and quicker to understand than