Recent in Fashion

Best Seller Books

How To Use A Text Box Control On The VB.NET

How To Use Text Box Controls On VB.NET. Text Box is one of the controls on visual basic that are used when we building an application. Text Box function to displays the value of an input or accept the value of an input.

In this tutorial  I will give you a tutorial How to use Text Box Controls on the VB.NET. To make it you can use Visual Studio 2008, Visual Studio 2010, Visual Studio Visual Studio 2012, 2013, 2015, Visual Studio and other recent Versions.
POST ADSENSE ADS
HERE
THAT HAVE BEEN PASSED

How To Use A Text Box Control On The VB.NET

To use a textbox control, showing textbox on vb dot net are as follows:

Baca Juga


Add Textboxt To The Project

  • Add a Text Box control into the form by clicking Text Box in the control toolbox and then slide it into the form or drag and drop textbox to project form;

Controll Textbox pada VB.NET
Controll Textbox pada VB.NET

Read the value from the Textbox

To display the value of the textbox, please follow the steps below:
  1. Input 1 textbox control to project;
  2. Input 1 control button to project;
  3. And then write this code
  4.   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(TextBox1.Text)
    End Sub
  5. Run The Program;
  6. Inpun text on TextBox;
  7. And then, click button
Controll Textbox pada VB.NET


Receive the value from other control to TextBox Control

To receive the value from other  control, follow the steps below:
So, In this tutorial we will display the value of textbox1 to textbox2
  1. Input 2 textbox to project
  2. Input 1 botton To project
  3. And then write this code
  4. 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
    TextBox2.Text = TextBox1.Text
    End Sub
    End Class

  5. Run the program;
  6. Input a value or text to textbox1;
  7. Click button;
  8. See on textbox2.


Ok, taht`s all. Thanks for visiting my little blog site. You are reading How To Use A Text Box Control On The VB.NET

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