Technical Training
VB.NET 2005Table of Contents
.NET Common Windows Forms Controls Part 2
.NET Common Windows Forms Controls Part 2 - Page 2
.NET Common Windows Forms Controls Part 2 - Page 3.NET Common Windows Forms Controls Part 2 Page - 3
.NET Common Windows Forms Controls Part 2
.
.
TrackBar
Trackbars are very much like scroll bars but the difference is in the appearance. Track bars look more like controls you might see on the stereos that control volume. You can configure the track bars range with minimum and maximum properties. You can also specify how much the value property should be incremented when clicks occur to the sides of the slider by means of the LargeChange property. The SmallChange property is the value changes that occur when the slider is manipulated by the user. A track bar can be displayed both horizontally and vertically.
Let us now create a new project in Visual Basic Express.
Drag and drop a TrackBar control, a label and a Command button as shown in the following screenshot:

Now add the following lines of code to the Page:
The output generated by the program is shown below:

Ads
ProgressBar
Progress bars are those simple controls that slow the progress of some operation by displaying rectangles in the horizontal bar. The main properties of a progress bar are value, minimum and maximum. You can use minimum and maximum properties to set the maximum and minimum values the progress bar can display. To change the display, you can write a code to set the value property. If the Maximum property is set to 100, the Minimum property is set to 10, and the value property is set to 60, then 60 rectangles will appear.
-
Create a new Visual Basic Project add a progress bar and two command buttons and two Labels.
-
Then add the following code to the form:
-
The output generated by the above program is given below:

HScrollBar and VScrollBar
A Scroll bar is a tool that allows the user to scroll through the windows. There are two types of scroll bars namely VScroll or HScroll. This usually appears automatically and disappears automatically if the content of the window reduces. You can also attach scrollbars manually by setting the property at design time or add it programmatically using the code. The sample code for attaching the ScrollBars for the TextBox1 is shown below
TextBox1.ScrollBars = ScrollBars.Both
The other possible values are ScrollBars.Vertical, ScrollBars.None and ScrollBars.Hornizontal
VB.NET 2005
- VB.NET 2005 Free Training
- The .NET Framework Architecture Part 1
- The .NET Framework Architecture Part 2
- Application Class and Message Class
- Implementing Class Library Object
- Visual Studio.NET Namespaces
- .NET Assemblies
- Differences between VB.NET 1.0 and VB.NET 2.0
- Introducing VB.NET Windows Forms
- Visual Studio Windows Forms Designer
- Exploring the Forms Designer generated code
- Setting and Adding Properties to Windows Form
- Implementing Inheritance
- Event Handling In Visual Basic .NET
- Building Graphical Interface elements
- .NET Common Windows Forms Controls Part 1
- .NET Common Windows Forms Controls Part 2
- Common Controls and Handling Control Events
- DomainUpDown and NumericUpDown Controls
- Dialog Boxes in Visual Basic .NET
- Visual Studio Adding Controls to Windows Form
- VB.NET Validation Controls
- Working with Menu Controls
- VB.NET MDI Applications
- .NET Exceptions
- VB.NET Creating and Managing Components Part 1
- VB.NET Creating and Managing Components Part 2
- Simple Data Binding
- .NET Complex Data Binding
- .NET Data Form Wizard
- Data Manipulation with ADO.NET
- SQL Server Stored Procedures
- SQL Server Ad Hoc Queries
- Finding and Sorting Data in DataSets
- ADO.NET Object Model
- Working with DataSets
- Using XML Data
- Working with File System in .NET
- Creating Web Service
- Instantiating - Invoking Web Services, Creating Proxy Classes with WSDL
- Web Reference and Web Services
- Web Services - SOAP, WSDL, Disco and UDDI
- Web Application Testing in VB.NET 2005
- Web Application Tracing and Debugging
- Working with Legacy Code and COM Components
- ActiveX Controls and Legacy Code
- Windows Application Testing
- VB.NET Windows Application Testing
- Tracing VB.NET Windows Application
- Debugging Windows Applications In Visual Studio.NET 2005
- Deploying Windows Applications In Visual Studio.NET 2005
- Customizing Setup Project in Visual Studio.NET 2005
- Shared Assembly
- Microsoft .NET Creating Installation Components
- The Registry Editor in Visual Studio.NET 2005
- The File Types Editor







