Professional Documents
Culture Documents
Toolbox in Visual Basic.net 2008 consist of Controls, Containers, Menu Options, Crystal Report
Controls, Data Controls, Dialogs, Components, Printing controls, that are used in a form to design
the interfaces of an application.
Following table lists the Common Controls listed in the ToolBox.
Pointer
Button
Check Box
CheckedList Box
Combo Box
DateTimePicker
Label
LinkLabel
List Box
List View
Masked Text Box
MonthCalendar
Notify Icon
NumericUpDown
Picture Box
Progress Bar
Radio Button
Rich TextBox
range.
Display image files
Display the progress of a task.
Allows to choose a choice from a group of choices.
Allows to edit, input rich text.
Text Box
ToolTip
Containers
Pointer
FlowLayoutPanel
GroupBox
provides a visible border and caption which can help the user
when works with a complicated form containing lot of controls.
In other words, it makes the interface much easier for the user
to understand.
The Panel control just like a GroupBox, can also contain the
RadioButton controls in a RadioButton group, but unlike a
GroupBox control, the Panel control doesn't display a visible
border, so you must use some other method to ensure that the
user can tell that the buttons are forming a group.
For example, you could use several Panels in a row, each
Panel
SplitContainer
When the user drags the splitter between the two panels, the
control resizes the panels accordingly. In addition, if you set
the AutoScroll property of the panels to True, they will
automatically provide scrollbars when necessary.
The TabControl displays data grouped by pages, while
the tabs enable the user to quickly jump from page to page.
TabControl
TableLayoutPanel
the cells in a particular row have the same height, and all the
cells in a particular column have the same width.
Pointer
ContextMenuStrip
MenuStrip
items, and to make it working you have to set the Form's Menu
property to the MenuStrip control.
This control displays a series of buttons, dropdowns, and other
tools.
ToolStrip
ToolSTripContainer
You can drag the ToolStrips around and position them inside of
any of the ToolStripPanel controls as much as you can move the
toolbars in the Visual Basic development environment.
Then you can drag the ToolStrips into multiple rows or
columns within the panels.
Data
Pointer
Chart
BindingNavigator
DataGridView
This control displays a table-like grid display while the data can
come from a data source such as a DataSet or BindingSource.
The DataGridView provides many properties for customizing
DataSet
Components
Pointer
BackgroundWorke
DirectoryEntry
DirectorySearcher
ErrorProvider
EventLog
FileSystemWatche
r
Its Filter property determines the files for which the watcher
reports events, but please be aware that you cannot watch
for multiple file types. Rather you have to use multiple
FileSystemWatcher instances. However the default Filter value
is *.*, which means it will watch all the files.
Its IncludeSubdirectories property determines whether the object
watches subdirectories within the main path (Path property
which determines the path to watch).
The HelpProvider displays help for the controls, and can
be associated with a control. Then, if the user sets focus to the
control and presses the F1 key, the HelpProvider is going
to display help for the control. It can display either a
HelpProvider
ImageList
MessageQueue
HelpProvider1" property)
This component stores a list of images to be used by other controls
or by the code.
This component provides access to a queue on a Message
Queuing server.
Basicaly it allows you to connect to existing
queues, send and receive messages, and otherwise add
communication services to your application using a very small
amount of code.
As for beginning you add an instance of the MessageQueue
component to your project and configure it to interact with a
queue on your Message Queuing server.
PerformanceCount
er
Process
You can also use the object to get information about a running
process such as its threads, the modules it has loaded, and
the amount of memory it is using.
When you add a new Process instance to the form, you set values
in its StartInfo property to define the application to run.
This component represents one of the computer's physical serial
ports, and provides properties and methods
for reading and configuring the port's baud rate, break signal,
SerialPort
Data Set Ready (DSR) state, port name, parity, and stop bits.
The class has methods for writing data to the port and
ServiceController
service.
We can use Timer Control in many situations in our development
environment. If you want to run some code after a certain interval
of time continuously, you can use the Timer control. As well as to
start a process at a fixed time schedule, to increase or decrease the
Timer
speed in an animation graphics with time schedule etc. you can use
the Timer Control. The Visual Studio toolbox has a Timer Control
that allowing you to drag and drop the timer controls directly onto a
Windows Forms designer. At runtime it does not have a visual
representation and works as a component in the background.
Printing
Pointer
PageSetupDialog
PrintDialog
PrintDocument
PrintPreviewContro
l
This control (the word Control helps you to differentiate it from the
PrintPreviewDialog control) displays a print preview, but usually,
it is easier to use the PrintPreviewDialog control described in the
next lesson to display a print preview dialog box.
The PrintPreviewControl control uses PrintDocument control to
generate the page(s) it needs and it displays them.
This component displays a dialog box that shows how the print
document will look like when it is printed.
Its most important property is Document, which determines
the PrintDocument object that the dialog box previews.
PrintPreviewDialog
The component's most important methods are Show, which
displays the dialog box Modelessly, and ShowDialog, which
displays the dialog box modally.
This component is remarkably simple to use. Set its Document
property and catch the PrintDocument object's PrintPage event.
Dialogs
Pointer
ColorDialog
FolderBrowserDial
og
FontDialog
OpenFileDialog
SaveFileDialog
WPF Interoperability
Pointer
ElementHost
control, you can receive events and access the control's exposed
properties. The simplest way to host a WPF control is to add
a Panel control to your form, and then host the WPF control in
the Panel. You typically do this in your form's Load event handler.
Reporting
Pointer
ReportViewer
VisualBasic PowerPacks
Pointer
PrintForm
LineShape
OvalShape
RectangleShape
DataRepeater