Export (0) Print
Expand All

Walkthroughs in Visual Basic and Visual C#

Visual Studio .NET 2003

Walkthroughs give step-by-step instructions for common scenarios, which makes them a good place to start learning about the product or a particular feature area.

Walkthroughs are presented in the following areas:

Note   Some features listed in the walkthrough topics are not available in the Standard Edition of Visual Basic and Visual C# .NET. For more information, see Visual Basic Standard Edition Features or Visual C# Standard Edition Features.

Distributed Applications Walkthrough

Creating a Distributed Application
Explains how to create a multitiered, distributed application that has both a Windows client and a browser interface.

Data and XML Walkthroughs

Simple Data Access in a Windows Form
Describes the basic steps required for accessing SQL Server data via a dataset in a read-write Windows Form.
Creating a Dataset with Tables, Keys, and One-to-Many Relationships
Describes the steps to create a dataset and use it to validate data in a one-to-many or keyed relationship.
Displaying Data in a Windows Form Using a Parameterized Query
Describes how to create a dataset containing only selected records, based on criteria that users provide at run time in a Windows Form.
Creating a Master-Detail Windows Form
Describes how to create a parent-child relationship in a dataset and display related records in a Windows Form.
Reading XML Data into a Dataset
Shows how to load XML data into a dataset, display it in a Windows Forms DataGrid control, and then display an XML schema for the file in a text box.
Mapping Data Source Tables to Dataset Tables
Describes how to load data from a database into a dataset based on a different schema using data adapter table and column mappings.
Handling a Concurrency Exception
Describes how to use the DBConcurrencyException object to identify concurrency exceptions and the actual record that caused the error.
Displaying Data in a Web Forms Page
Illustrates a basic data-access scenario, providing step-by-step instructions for how to create a Web Forms page that displays data in a grid control.
Creating Read-Only Data Access in a Web Forms Page
Describes how use an ADO.NET data command and data reader to provide optimized access to read-only data in a Web Forms page.
Updating Data Using a Database Update Query in Web Forms
Describes the basic techniques of creating a Web Forms page that uses a data command to update the database.
Using a DataGrid Web Control to Read and Write Data
Gives step-by-step details on how to use a grid control to allow users to view and edit data.
Creating Paged Data Access Using a Web Forms Page
Describes how to create a Web Forms page that allows users to view data records a few records at a time, paging back and forth to view earlier and later records.
Displaying an XML Document in a Web Forms Page using Transformations
Gives step-by-step details on how to read an XML file and display it in different ways on a Web Forms page.
Creating an XML File with an Associated XML Schema
Describes the steps for creating an XML file and a schema, associating the two, and working on the XML file in the designer's XML view.
Creating an XML Schema with the XML Designer
Describes the steps to create an XML purchase order schema as part of a Windows application.

XML Web Services Walkthroughs

Creating an XML Web Service Using Visual Basic or Visual C#
Explains how to create an XML Web service that converts temperatures measured in Fahrenheit to Celsius.
Accessing an XML Web Service Using Visual Basic or Visual C#
Describes how to make use of an existing XML Web service.
Calling XML Web Services from Windows Forms
Describes how to make calls to Web service methods from a Windows application.

Windows Application Walkthroughs

Creating a Simple Windows Form
Describes how to build and run a simple Windows Form.
Creating a Master-Detail Windows Form
Describes how to create a parent-child relationship in a dataset and display related records in a Windows Form.
Creating Dynamic Context Menus on Windows Forms
Steps through a detailed example of creating a single context menu to serve two or more different controls.
Switching Windows Forms Menu Structures Based on Application State
Gives directions for switching between MainMenu objects programmatically.
Demonstrating Visual Inheritance
Describes how to create a base Windows Form and compile it into a class library. You will import this class library into another project, and create a new form that inherits from the base form.
Creating a Multipane User Interface with Windows Forms
Describes how to create a multipane user interface that is similar to the one used in Microsoft Outlook.
Simple Data Access in a Windows Form
Describes the basic steps required for accessing SQL Server data via a dataset in a read-write Windows Form.
Displaying Data in a Windows Form Using a Parameterized Query
Describes how to create a dataset containing only selected records, based on criteria that users provide at run time in a Windows Form.
Calling XML Web Services from Windows Forms
Describes how to make calls to Web service methods from a Windows application.
Creating a Windows Service Application in the Component Designer
Describes how to create a long-running executable file that does not have a user interface.
Persisting an Object
Demonstrates how serialization can be used to persist an object's data between instances, allowing you to store values and retrieve them the next time the object is instantiated.
Retrieving Dialog Box Information Collectively Using Objects
Gives directions for using an object to expose a group of related data from a dialog box.
Updating Status-Bar Information at Run Time
Gives directions for programmatically controlling the data within status bar panels.

Web Walkthroughs

Creating a Basic Web Forms Page
Illustrates the basic techniques of how to create a Web Forms page in Visual Basic or Visual C#, add controls to it, and run it.
Creating a Web Application Using Visual C# or Visual Basic
Describes how to write a Web Forms application and then integrate a business-object component that gives you a 10% discount for purchases.
Creating a Web Application Using a Third-Party Business Object
Describes how to write a Web Forms application using Managed Extensions for C++ and then integrate a third-party business-object component that gives you a 10% discount for purchases.
Validating User Input in a Web Forms Page
Describes how to use Web Forms validation controls to check user entries without code, including required entries, data types, ranges, patterns, and specific values.
Displaying Data in a Web Forms Page
Illustrates a basic data-access scenario, providing step-by-step instructions for how to create a Web Forms page that displays data in a grid control.
Creating Read-Only Data Access in a Web Forms Page
Describes how use an ADO.NET data command and data reader to provide optimized access to read-only data in a Web Forms page.
Updating Data Using a Database Update Query in Web Forms
Describes the basic techniques of creating a Web Forms page that uses a data command to update the database.
Using a DataGrid Web Control to Read and Write Data
Gives step-by-step details on how to use a grid control to allow users to view and edit data.
Creating Paged Data Access using a Web Forms Page
Describes how to create a Web Forms page that allows users to view data records a few records at a time, paging back and forth to view earlier and later records.
Creating a Web User Control
Describes how to create a Web Forms user control — a page configured to act as a control — and use it on another page.
Converting a Web Forms Page to a User Control
Describes how to convert a basic Web Forms page into a user control that can be hosted on another page.
Creating a Web Custom Control
Describes how to create a custom control, add it to the toolbox, and use it on a Web Forms page.
Displaying an XML Document in a Web Forms Page using Transformations
Gives step-by-step details on how to read an XML file and display it in different ways on a Web Forms page.

Visual Basic Language Walkthroughs

Declaring and Raising Events
Illustrates how events are declared and raised in Visual Basic .NET.
Handling Events
Shows how to handle events using either the standard WithEvents keyword or the new AddHandler/RemoveHandler keywords.
Structured Exception Handling
Demonstrates how to create and maintain programs with comprehensive error handling, and how to use Try...Catch...Finally.
Defining Classes
Describes how to declare a class and its fields, properties, methods, and events.
Creating and Implementing Interfaces
Shows how interfaces are declared and implemented in Visual Basic .NET.
Multithreading
Shows how to create a multithreaded application that that searches a text file for occurrences of a word.
Calling Windows APIs
Explains how to use Declare statements and call Windows APIs. Includes information about using attributes to control marshaling for the API call and how to expose an API call as a method of a class.
Creating COM Objects with Visual Basic .NET
Demonstrates how to create COM objects with Visual Basic .NET, with or without the COM class template.
Implementing Inheritance with COM Objects
Demonstrates how to use Visual Basic 6.0 to create a COM object containing a class, and then use it as a base class in Visual Basic .NET.
Interacting with Files and Folders in Visual Basic .NET
Provides an introduction to the fundamentals of file I/O.
Manipulating Files Using .NET Framework Methods
Demonstrates how to read and write to a text file using the .NET Framework classes, Streamreader and Streamwriter.

Deployment Walkthroughs

Deploying a Web Solution
Guides you through deploying a Web application to a Web server.
Deploying a Windows Application
Guides you through deploying a Windows application to another computer.
Creating a CAB File
Guides you through distributing an ActiveX control.
Creating a Custom Action
Guides you through directing a user to a Web site following installation.
Passing Data to a Custom Action
Demonstrates passing data to a dynamic property during installation using a custom action and the CustomActionData property.
Using a Custom Action to Create a Database During Installation
Guides you through creating a custom action to create a database during installation.
Using a Custom Action to Pre-compile an Assembly During Installation
Guides you through creating a custom action to pre-compile an assembly after installation.
Creating and Consuming a Merge Module
Guides you through packaging a component in a merge module and then including the merge module in an installer.
Redirecting an Application to Target a Different XML Web Service During Installation
Demonstrates how to create a Web application that can be redirected to target a different XML Web service by using the URL Behavior property, an Installer class, and a Web Setup project.

Component and Control Authoring Walkthroughs

Authoring a Component with Visual Basic .NET
Shows the development of a simple component in Visual Basic, illustrating the interaction between client and component, object lifetime and circular references, debugging clients and components, and the use of shared methods and instance methods.
Authoring a Component with Visual C#
Shows the development of a simple component in Visual C#, illustrating the interaction between client and component, object lifetime and circular references, debugging clients and components, and the use of shared methods and instance methods.
Creating Your Own Collection Class
Shows how you can create your own collection classes by inheriting from one of the many .NET Framework collection classes and adding code to implement your own custom functionality.
Authoring a User Control with Visual Basic .NET
Shows the development of a simple control in Visual Basic that inherits from the UserControl class, and how to inherit from an established user control.
Authoring a User Control with Visual C#
Shows the development of a simple control in Visual C# that inherits from the UserControl class, and how to inherit from an established user control.
Inheriting from a Windows Forms Control with Visual Basic .NET
Shows the development of a simple control in Visual Basic that inherits from a pre-existing Windows Forms control.
Inheriting from a Windows Forms Control with Visual C#
Shows the development of a simple control in Visual C# that inherits from a pre-existing Windows Forms control.
Authoring a Simple Multithreaded Component with Visual Basic
Demonstrates the development of a simple multithreaded component in Visual Basic, explaining how threads work and how to coordinate multiple threads in your component.
Authoring a Simple Multithreaded Component with Visual C#
Demonstrates the development of a simple multithreaded component in Visual C#, explaining how threads work and how to coordinate multiple threads in your component.

Dynamic Properties Walkthrough

Storing and Retrieving Dynamic Properties
Describes the major steps in storing and retrieving property values.

Internationalization Walkthroughs

Localizing Web Forms Pages
Describes the major steps in creating a global-ready Web Forms application.
Localizing Windows Forms
Describes the major steps in creating a global-ready Windows Forms application.

Accessibility Walkthroughs

Creating an Accessible Web Application
Describes how to create an ASP.NET Web application that is optimized for different accessibility issues.
Creating an Accessible Windows Application
Describes how to create a Windows application that is optimized for different accessibility issues.

Framework Services Component Walkthroughs

Creating a Queue and Working with Messages
Describes how to use the MessageQueue component to interact with Windows message queues.
Creating a Message Queue Transaction with COM+ Services
Describes how to create a message queue transaction hosted by Enterprise Services (COM+ services).
Exploring Event Logs, Event Sources, and Entries
Describes how to use the EventLog component to interact with existing logs, create custom logs, and read and write values to logs.
Retrieving Categories and Counters
Describes how to use the PerformanceCounter component to retrieve lists of Windows performance counter categories on a server.
Changing and Retrieving Performance Counter Values
Describes how to use the PerformanceCounter component to retrieve and set raw and calculated values from a Windows performance counter.
Managing a Windows Process
Describes how to use the Process component to monitor and interact with Windows processes on a server.
Reacting to File System Events
Describes how to use the FileSystemWatcher component to monitor files and directories and react when changes occur.
Adding ActiveDirectory Objects
Describes how to use the DirectorySearcher component to interact with Active Directory file system structures.
Installing an Event Log Component
Describes how to use an installation component to configure server resources needed for your EventLog component instance.

Upgrading Walkthrough

Upgrading a Visual Basic 6.0 Application to Visual Basic .NET
Describes how to upgrade a standard application from Visual Basic 6.0 to Visual Basic .NET.

Office Development Walkthroughs

Programming with Office
Describes how to use Microsoft Office and Visual Studio .NET as part of your business application.

See Also

Samples and Walkthroughs | Common Tasks in Visual Basic and Visual C# | Visual Basic Code Example Topics

Show:
© 2014 Microsoft