How To Use Control Button in the VB.NET. Button was one of the control on a Visual Basic that function to execute the command, action and event.
At this time, the writer will give you a tutorial about how to use and making a Control Button on the Form in the Visual Basic Dot Net. To make it you can use Visual Studio 2008, Visual Studio 2010, Visual Studio Visual Studio 2012, 2013, 2015, Visual Studio and other latest version of visual studio.
To use or display the Button on the form in the VB.NET you can follow this step:
POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED
HERE
THAT HAVE BEEN PASSED
Baca Juga
How To use Button in VB NET?
- Add a label to the control in the form by clicking control toolbox on the label then drag and drop into the form
![]() |
Control Button di VB.NET |
Button had some property to change the text, back color, Flat Styling, Fore Color, etc
Changge the text on Button
To change the text on the button, you can wrtite this code inside the form load event onButton1.Text = "CLICK ME"
![]() |
Control Button di VB.NET |
To use controls button on Visual Basic, you need to write the command at the click event on the button. You have to double click the button, then you will automatically be on event listing click button.
Write the code below the click event on the button
MsgBox("YOU CLICK ME")
![]() |
Control Button di VB.NET |
This is full source
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Text = "CLICK ME"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("YOU CLICK ME")
End Sub
End Class
Tags
VB NET
Subscribe Our Newsletter
0 Comment
Post a Comment