SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

VB.NET Button Control.

The VB.NET Button control can be used to initiate a function, confirm an entry, compare values and many other actions. The button can be clicked by the use of the mouse or if the button has focus, with the enter key or the space bar. The VB.NET button control can be disabled and only enabled under certain application conditions or changes.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Creating an new VB.NET Windows forms Button.
Dim button As New Button

Assigning a new location for the VB.NET Windows Forms Button.
button.Location = New Point(20, 20)

Assigning a text value to the VB.NET Button control.
button.Text = "Click me"

Adding a VB.NET Button control to the form.
Me.Controls.Add(button)

Creating a Click Event for the VB.NET Button control.
AddHandler button.Click, AddressOf button_Click

Responding to the VB.NET Button Click event.
Private Sub button_Click(ByVal sender As Object, ByVal e As EventArgs)
MessageBox.Show("Button Clicked")
End Sub

VB.NET Button control Tutorial.
Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces