Visual Basic

Explore the Samples

The Visual Basic sample applications are located on the MSDN CD. You can install them during MSDN Installation by selecting "VB Product Samples" in the Custom dialog box. If you have installed the sample applications, the directories can be found at the following location:

\Program Files\Microsoft Visual Studio\MSDN\00APR\1033\Samples\VB98

If you have not installed the samples, you can copy the files from the MSDN Library CD at this location:

\Samples\VB98

The following lists show the Visual Basic sample programs, organized by category.

ActiveX

ActXDoc.vbp ActiveX Document tutorial.
AXData.vbg ActiveX components acting as data sources for other controls.
Coffee Creating and using ActiveX components.
CtlPlus.vbp Creating an ActiveX control.
DatAware.vbp Creating classes that can act as sources or consumers of data.
GeoFacts.vbp Demonstrates the use of Excel objects in a Visual Basic application.

Controls

ChrtSamp.vbp Using MSChart control to display data from an Excel worksheet.
Controls.vbp Shows use of controls such as the TextBox, CommandButton, and Image.
CtlsAdd.vbp Adding controls to an application at run time.
Datatree.vbp Using the TreeView, ListView, and ProgressBar.
Dialer.vbp Using MSComm control and a modem to dial a phone number.
ListCmbo.vbp Data-binding to a list box and combo box.
MCITest.vbp Shows basic functionality of the Multimedia MCI Control.
OleCont.vbp OLE Container control.
RedTop.vbp Creates an animation of a spinning top.
VBMail Demonstrates the use of the MAPI controls by sending and receiving electronic mail.
VBTerm.vbp Terminal emulation using the MSComm control.
WinSeek.vbp Searching for specific files; uses ListBox controls. (Also known as FileCts.)

Data Access and Data Binding

AXData.vbg ActiveX components acting as data sources for other controls.
BookSale.vbp Uses an Automation server to encapsulate the logic of business policies and rules.
Data Environment Demonstrates the new Data Environment designer.
Data Report Demonstrates the new Data Report designer.
DatAware.vbp Creating classes that can act as sources or consumers of data.
Datatree.vbp Using the TreeView, ListView, and ProgressBar.
FirstApp.vbp Using the Data control and other data-aware controls.
ListCmbo.vbp Data-binding to a list box and combo box.
Loan.vbp Using ADO and creatable recordsets to dynamically populate a DataGrid control.
MSFlexGd.vbp Using the MS FlexGrid control.
Visdata.vbp DAO techniques.

Enterprise

Callback Server-initiated callback to the client.
Hello World Remote Automation Simple remote automation.
Interface Uses the COM apartment model resource allocation algorithm.
Message Queue Enterprise messaging.
Passthrough Server Simple pass-through server.
Pool Manager Clients ask the pool manager for a pointer to an object.

General Programming

ATM.vbp How to use a resource file.
CallDlls.vbp Calling procedures in dynamic-link libraries.
Controls.vbp Shows use of controls such as the TextBox, CommandButton, and Image.
Errors.vbp Error-handling techniques.
FirstApp.vbp Using the Data control and other data-aware controls.
MdiNote.vbp Making a simple multiple-document interface application. Menu creation.
Optimize.vbp Optimization techniques.
ProgWOb.vbp Programming with objects.
SdiNote.vbp Making a simple single-document interface application. Menu and toolbar creation.
TabOrder.vbp Reset the tab order of a given form using Visual Basic Extensibility model.
VCR.vbp How Visual Basic classes can be modeled after real-world objects.

Graphics

Blanker.vbp General graphics techniques.
Palettes.vbp PaletteMode settings; the Picture object.

Web

ActXDoc.vbp ActiveX Document tutorial.
DhShowMe.vbp DHTML techniques.
PropBag.vbp Storing state values between HTML pages.
Support1.vbp Using webclass and ADO technology to create an application.
Wcdemo.vbp WebClass demonstration.


Back to the Visual Basic Start Page

Island Hopper News sample
Explore the Visual Studio sample, which illustrates how you can design and structure applications using the Microsoft platform and the Visual Studio suite.

Visual Basic Samples