Export (0) Print
Expand All

Visual Basic QuickStarts and Other Samples

Visual Studio .NET 2003

You can find Visual Basic and other general samples at Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples if you install them with the .NET Framework SDK. If you do not want to install the samples on your computer, go to the StartSamples.htm file in the ...\Samples folder in the .NET Framework SDK installation directory on the product CD or DVD.

QuickStarts

The QuickStarts are a series of samples and supporting documentation designed to quickly acquaint you with the syntax, architecture, and power of Visual Studio .NET and the .NET Framework. To access the QuickStarts, open the Start menu, then click Programs, Microsoft .NET Framework SDK, and then Samples and QuickStart Tutorials. The main page of the "Microsoft .NET Framework SDK QuickStarts, Tutorials and Samples" application will appear. To run the samples, follow the directions to install the samples database and complete the installation. After you have installed the QuickStarts, the "QuickStarts Tutorials" link will be functional.

The following QuickStarts are specific to Visual Basic:

Windows Forms

Description Location
Hello World quickstart\winforms\samples\simplehelloworld\vb\SimpleHelloWorld.vbproj

quickstart\winforms\samples\designablehelloworld\vb\DesignableHelloWorld.vbproj

The Windows Forms Model quickstart\winforms\samples\helloworldform\vb\HelloWorldForm.vbproj
Dynamic layout: anchoring and docking quickstart\winforms\samples\layout\anchoring\vb\Anchoring.vbproj

quickstart\winforms\samples\layout\docking\vb\Docking.vbproj

quickstart\winforms\samples\layout\dockman\vb\DockMan.vbproj

MDI applications quickstart\winforms\samples\mdi\vb\MDI.vbproj
Handling errors quickstart\howto\samples\winforms\errorhandler\vb\ErrorHandler.vbproj

Window Forms Controls

Description Location
Button quickstart\winforms\samples\controlreference\buttonctl\vb\ButtonCtl.vbproj
CheckedListBox quickstart\winforms\samples\controlreference\checkedlistboxctl\vb\CheckedListBoxCtl.vbproj
ComboBox quickstart\winforms\samples\controlreference\comboboxctl\vb\ComboBoxCtl.vbproj
MainMenu, ContextMenu quickstart\winforms\samples\menus\vb\Menus.vbproj
DateTimePicker, ColorDialog, FontDialog, GroupBox quickstart\winforms\samples\controlreference\datetimepickerctl\vb\DateTimePickerCtl.vbproj
DomainUpDown and Numeric UpDown quickstart\winforms\samples\controlreference\updownctl\vb\UpDownCtl.vbproj
DataGrid quickstart\winforms\samples\data\grid\vb\Grid.vbproj
ErrorProvider quickstart\winforms\samples\data\update\vb\UpdateWebService.vbproj

quickstart\winforms\samples\data\update\vb\client\Update.vbproj

quickstart\winforms\samples\data\update\vb\customersdataset\CustomersDataSet.vbproj

PageSetupDialog, PrintDialog, PrintDocument, PrintPreviewControl, PrintPreviewDialog quickstart\winforms\samples\printing\example1\vb\PrintingExample1.vbproj

quickstart\winforms\samples\printing\example2\vb\PrintingExample2.vbproj

quickstart\winforms\samples\printing\example3\vb\PrintingExample3.vbproj

quickstart\winforms\samples\printing\example4\vb\PrintingExample4.vbproj

quickstart\winforms\samples\printing\example5\vb\PrintingExample5.vbproj

HScrollBar, VScrollBar quickstart\winforms\samples\controlreference\scrollbarctl\vb\ScrollBarCtl.vbproj
ImageList, ToolTip, TreeView quickstart\winforms\samples\controlreference\treeviewctl\vb\TreeViewCtl.vbproj
LinkLabel, PropertyGrid quickstart\winforms\samples\controlreference\linklabelctl\vb\LinkLabelCtl.vbproj
ListBox quickstart\winforms\samples\controlreference\listboxctl\vb\ListBoxCtl.vbproj

quickstart\howto\samples\winforms\ownerdrawlistbox\vb\OwnerDrawListBox.vbproj

ListView, ToolTip quickstart\winforms\samples\controlreference\tooltipctl\vb\ToolTipCtl.vbproj
ProgressBar, TrackBar quickstart\winforms\samples\controlreference\progressbarctl\vb\ProgressBarCtl.vbproj
RadioButton quickstart\winforms\samples\layout\dockman\vb\DockMan.vbproj
StatusBar, Timer quickstart\winforms\samples\controlreference\statusbarctl\vb\StatusBarCtl.vbproj
TabControl quickstart\winforms\samples\controlreference\tabcontrolctl\vb\TabControlCtl.vbproj
TrackBar quickstart\winforms\samples\controlreference\trackbarctl\vb\TrackBarCtl.vbproj

Data

Description Location
Simple data binding quickstart\winforms\samples\data\simplebinding\vb\SimpleBinding.vbproj
Data binding with the ComboBox quickstart\winforms\samples\data\comboboxbinding\vb\ComboBoxBinding.vbproj
Data binding with the DataGrid quickstart\winforms\samples\data\grid\vb\Grid.vbproj
Master/Detail: three projects working together quickstart\winforms\samples\data\masterdetails\vb\MasterDetailsWebService.vbproj

quickstart\winforms\samples\data\masterdetails\vb\client\MasterDetails.vbproj

quickstart\winforms\samples\data\masterdetails\vb\dataset\CustomersAndOrdersDataSet.vbproj

Update quickstart\winforms\samples\data\update\vb\UpdateWebService.vbproj

quickstart\winforms\samples\data\update\vb\client\Update.vbproj

quickstart\winforms\samples\data\update\vb\customersdataset\CustomersDataSet.vbproj

Data binding a DataGrid to an XML Web service quickstart\winforms\samples\data\webservicebinding\vb\WebService.vbproj

quickstart\winforms\samples\data\webservicebinding\vb\client\WebServiceClient.vbproj

quickstart\winforms\samples\data\webservicebinding\vb\dataset\DataSet.vbproj

Web

Description Location
Web Forms user controls quickstart\aspplus\samples\vstudio\webforms\pagelets\vb\Pagelets.vbproj
Validation quickstart\aspplus\samples\vstudio\webforms\validate\vb\Validate.vbproj

Other features

Description Location
Accessibility quickstart\winforms\samples\accessible\vb\Accessible.vbproj
Printing quickstart\winforms\samples\printing\example1\vb\PrintingExample1.vbproj

quickstart\winforms\samples\printing\example2\vb\PrintingExample2.vbproj

quickstart\winforms\samples\printing\example3\vb\PrintingExample3.vbproj

quickstart\winforms\samples\printing\example4\vb\PrintingExample4.vbproj

quickstart\winforms\samples\printing\example5\vb\PrintingExample5.vbproj

Graphics quickstart\winforms\samples\gdiplus\brushes\vb\GDIPBrushes.vbproj

quickstart\winforms\samples\gdiplus\images\vb\GDIPImages.vbproj

quickstart\winforms\samples\gdiplus\pens\vb\GDIPPens.vbproj

quickstart\winforms\samples\gdiplus\text\vb\GDIPText.vbproj

Controls: writing and hosting quickstart\winforms\samples\writingcontrols\helloworldcontrol\vb\control\HelloWorldControl.vbproj

quickstart\winforms\samples\writingcontrols\helloworldcontrol\vb\hostapp\HostApp.vbproj

quickstart\winforms\samples\writingcontrols\simplecontrol\vb\control\SimpleControl.vbproj

quickstart\winforms\samples\writingcontrols\simplecontrol\vb\hostapp\HostApp.vbproj

quickstart\winforms\samples\writingcontrols\customuitypeeditor\vb\control\FlashTrackBar.vbproj

quickstart\winforms\samples\writingcontrols\customuitypeeditor\vb\hostapp\CustomUITypeEditor.vbproj

Controls: User control quickstart\winforms\samples\writingcontrols\usercontrol\vb\control\CustomerControl.vbproj

quickstart\winforms\samples\writingcontrols\usercontrol\vb\hostapp\UserControl.vbproj   

Controls: Licensing quickstart\winforms\samples\writingcontrols\licensedcontrol\vb
Threading and marshalling quickstart\howto\samples\winforms\threadmarshal\vb\ThreadMarshal.vbproj

Additional Samples

When you install the .NET Framework SDK, you can also access the following samples that represent complete applications or feature various technologies. (You can also find them on the CD at the location specified below.) The application samples demonstrate more complete error handling and object-oriented development, while the technology samples provide instruction on one or more features.

Each sample also contains a Readme.htm file with a brief description of the sample. The readme file is in the parent directory of the Visual Basic directory. For example, the readme file for the TypeFinder application is located in Samples\applications\typefinder.

You can also access the readme files in the "Microsoft .NET Framework SDK QuickStarts, Tutorials and Samples" application. To access the samples, select Start, Programs, Microsoft .NET Framework SDK, and then Samples and QuickStart Tutorials. The main page of the "Microsoft .NET Framework SDK QuickStarts, Tutorials and Samples" application will appear. There are links on this page to the Visual Basic samples described in the following table.

The following samples are specific to Visual Basic:

Sample Location on CD
TypeFinder: a console application providing a tool that a user with a command-line interface can use to find out about types in the environment Samples\applications\typefinder\vb\TypeFinderVB.vbproj
WinTalk: a simple "Sockets Chat" Windows application using Windows Forms Samples\applications\wintalk\vb\WinTalkVB.vbproj
WordCount: a console application that counts the words in a text file and organizes the results depending on the arguments you use in the command line Samples\applications\wordcount\vb\WordCountVB.vbproj
Object Construction: a technology sample demonstrating object construction strings Samples\technologies\componentservices\objectconstruction\VB\OCFormVB.vbproj

Samples\technologies\componentservices\objectconstruction\VB\OCObjVB.vbproj

Object Pooling: a technology sample demonstrating multiple client programs using one pooled object in a server application Samples\technologies\componentservices\objectpooling\VB\OPFormVB.vbproj

Samples\technologies\componentservices\objectpooling\VB\OPObjVB.vbproj

Queued Components: a technology sample demonstrating COM+ queued components Samples\technologies\componentservices\queuedcomponents\VB\QCFormVB.vbproj

Samples\technologies\componentservices\queuedcomponents\VB\QCObjVB.vbproj

Role-Based Security: a technology sample that uses a server application to track a client application's user account and report whether it belongs to the administrator's role Samples\technologies\componentservices\RoleBasedSecurity\VB\RBSecFormVB.vbproj

Samples\technologies\componentservices\RoleBasedSecurity\VB\RBSecObjVB.vbproj

Configuration: a technology sample demonstrating how to use the .NET Framework Configuration WMI provider with the System.Management classes to read and write configuration files Samples\technologies\Configuration\ConfigTest\VB\ConfigTestVB.vbproj
Delegates and Events: a technology sample demonstrating a type-safe callback mechanism Samples\technologies\delegatesandevents\vb\DelegatesAndEventsVB.vbproj
Exceptions: a technology sample demonstrating structured exception handling Samples\technologies\exceptions\vb\ExceptionsVB.vbproj
Garbage Collection: a technology sample showing how the heap manages all class objects by monitoring their lifetimes and freeing the objects when they are no longer referenced Samples\technologies\GarbageCollection\VB\GarbageCollectionVB.vbproj
Permissions: a technology sample demonstrating how to grant or deny access to resources within a method call Samples\technologies\permissions\vb\PermissionsVB.vbproj
Custom Attributes: a technology sample demonstrating how to create customer attributes and associate them with types and members. The sample also uses reflection to find out if a custom attribute is associated with a type or member Samples\technologies\reflection\customattribute\vb\CustomAttributeVB.vbproj
Dynamic Type Resolution: a technology sample demonstrating how a distributed application can increase flexibility and fault-tolerance using a type resolution process. Samples\technologies\reflection\DynamicTypeResolve\VB\DynamicTypeResolveVB.vbproj
Reflection Invoke: a technology sample demonstrating how a distributed application can increase flexibility and fault-tolerance using a type resolution process Samples\technologies\reflection\invoke\vb\InvokeVB.vbproj

Samples\technologies\reflection\invoke\vb\TesterVB.vbproj

Reflection Emit: a technology sample demonstrating how to use a run-time feature that allows code to create dynamic assemblies, modules, and types Samples\technologies\reflection\reflectionemit\vb\ReflectionEmitVB.vbproj
Serialization: a technology sample demonstrating how the common language runtime can serialize an object graph in memory to a stream using the SoapFormatter or the BinaryFormatter Samples\technologies\serialization\vb\SerializationVB.vbproj
Join Thread: a technology sample demonstrating the common language runtime feature that allows one thread to either wait for another thread to terminate or "join' with another thread Samples\technologies\threading\jointhread\vb\JoinThreadVB.vbproj
Monitor Synchronization: a technology sample demonstrating how to use the Monitor class to synchronize threading Samples\technologies\threading\monitorsynchronization\vb\MonitorSynchronizationVB.vbproj
Thread Pools: a technology sample demonstrating how to use the ThreadPool class by queuing an asynchronous method call that is executed by a thread from the thread pool managed by the common language runtime Samples\technologies\threading\pools\vb\PoolsVB.vbproj
Reader-Writer Synchronization: a technology sample demonstrating how to use the ReaderWriterLock class. This allows you to enforce exclusive access to a shared resource while a thread is writing or modifying a resource, but allows nonexclusive access when readying or querying the resource Samples\technologies\threading\readerwritersynchronization\vb\ReaderWriterSynchronizationVB.vbproj
Thread Static: a technology sample demonstrating how to use the ThreadStaticAttribute type to create static variables backed by thread local storage Samples\technologies\threading\threadstaticvariables\vb\ThreadStaticVariablesVB.vbproj
Timers: a technology sample demonstrating how to use timers in the common language runtime Samples\technologies\threading\timers\vb\TimersVB.vbproj
Wait Synchronization: a technology sample demonstrating how to use the WaitHandle class for thread synchronization by enforcing mutually exclusive access to a protected code block Samples\technologies\threading\waitsynchronization\vb\WaitSynchronizationVB.vbproj
Value and Enum Types: a technology sample demonstrating how to work with value and enumerated types Samples\technologies\valueandenumtypes\vb\ValueAndEnumTypesVB.vbproj

See Also

Visual Basic Sample Applications | Visual Basic Walkthroughs | Windows Forms QuickStart (.NET Framework) | QuickStarts (.NET Framework)

Show:
© 2014 Microsoft