Recent in Fashion

Best Seller Books

How To Use Control Button in the VB.NET

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.


POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED
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.

Baca Juga

How To use Button in VB NET?

To use or display the Button on the form in the VB.NET you can follow this step:
  • 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
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 on
Button1.Text = "CLICK ME"


Control Button di VB.NET
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
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

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

0 Comment

Post a Comment

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads