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

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

Storing Pictures in a DLL

Question: I found a vbx which allows me to place icons or bitmapson a command button. How can I store these images in onefile and read them in like an

Monitoring Port

Question: Do you know if there is a Win API or Winsock call that will tell me when I’ve connected/disconnected to myinternet provider. Answer: What you might want to do

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

VB4 GetPrivateProfileString Problems

Question: I am trying to use GetPrivateProfileString to access INI entries in a INI file using Visual Basic 4.0. Whenever I try to run my program it produces the error

Using Me Object

Question: What is the different between using Me and FormActualName when accessing a form’s property or to pass the FRM to a subprogram.Is it ok to use ME all the

Accessing Financial Function Library

Question: I’m looking for help on using the VB 3.0 functions IRR, MIRR and NPV. When I try to use any of them I get Reference to undefined function or

Combining VB with C

Question: Can I write a module in Ansi C language and compile it together with a VB program? If cannot, how can I combine these two modules? Answer: You can’t

Using Counters

Question: I am designing a database as a correspondance register.Each bit of inwards and outwards mail is given a unique number. At present I have set up a counter field

Showing Currency Values

Question: I am using VB as a front-end to an Access 2.0 database. Some of the fields in my Access db are of type currency. However, VB only displays them

Flushing I/O Buffer

Question: Is there a way within VB to flush information sent to a file? Normally, information is buffered and not sentto the file until the buffer size is exceeded or

Allowing Network Usage

Question: How do I turn a single pc VB3 application using MS Access2 into an app that’s capable of running on a network? Answer: Really, the basic thing you have

Determining Screen Resolution with Screen Object

Question: I would like to be able to determine what resolution is seton a particular system so that my application opens up toa correct scale. Answer: Look at the Screen

Repairing a Corrupted File

Question: Not knowing that my hard disk was almost full, I tried to load a VB MAK file that I had created in VB3. When I did, a message said

Binding Across Forms

Question: We want to use multiple VB forms with independent controls bound to independent data controls accessinga single table.In Vb 3.0, we are not able to save the controls dataof

Using 16 bit DLLs in 32 bit VB 4.0

Question: Can I use 16 bit .DLLs in VB 4.0 32 bit? Answer: No, you can’t. In order to access it, you’ll either have to recompile the DLL (and possibly

Using Locked Property vs. Disabled Property

Question: Is there a way to keep VB4 from dimming the text in disabled controls boxes (i.e. Text and Labelcontrols)? I would Like to use my own Colors forText areas

Programmatically Clearing a Text Box

Question: I have a series of text boxes, any subset of which can be used for input of numerical data, followed by a command box to “compute” from that input

Making the List Drop Automatically

Question: How can I make the combo box drop its list easily? Answer: On form load, do combo.additem , until allitems are placed into the combo list.To cause the combo

Getting Documentation

Question: I am a new VB programmer. I have been researchinginto VB programming using soom custom VBX’s for TCP/IPtype of stuff. I need to know if there is a book

Creating Toolbars

Question: I’d like to create a floating window that has a small titlebar,like the VB toolbox window, for instance. In the VB FAQ,it says to see the sample program in

Opening a Word Document

Question: How can I open a Word document from my Visual Basic application? Answer: Use the following code sample to do it:Set wordbasic = CreateObject(“word.basic”)wordbasic.fileopen pathname$, 0, 1where:pathname$ is the

Controlling Execution Flow

Question: How do you command a button to go to another form, I put like follows:Sub Double_Click ( ) GoTo form2 EndEnd Sub OR Sub Double_Click ( ) Load form2

Checking on Daylight Savings Time

Checking for Daylight Savings Time is one of the most common date checks developers perform. .NET provides an easy method to do this. In .NET

Testing Tips for When Unit Testing Is Too Hard

echnologies such as the xUnit framework, combined with Maven, BuildBot, or CruiseControl, enable unit testing under continuous integration, which gives developer productivity a huge boost.

Book Excerpt: ASP.NET AJAX in Action

ASP.NET AJAX (formerly called Atlas) is a new free framework from Microsoft designed to let developers add Asynchronous JavaScript and XML (AJAX) features to ASP.NET

Insert an XML Schema into an XQuery Query

Use the following code to insert an XML Schema into an XQuery query. The following code assumes that the XML Schema is: file:///C://Data_Local//xml//docs//AirWings_xslt_xmlschema.xsd and the

Show() vs. ShowDialog() in .NET

The form class’ ShowDialog method functions differently than its Show method. Here’s how: ShowDialog‘s returned value can be used to determine how the user closed