Computer Science, asked by Klancer, 1 year ago

What are the differences between a text box and label box​ in visual basic?

Answers

Answered by krishanu2002
8

Difference between label and textbox:

A label is meant to be used beside a text box to make a user understand what is to be entered in that text box where as a text box is used normally for user input.

The contents of a label is not to be directly modified by a user where as the contents of a text box is for the user to modify.

However, by appropriate coding, you can make a label behave like a text box or vice versa, if you like.

 

Answered by StaceeLichtenstein
2

Differences between a text box and label box​ in visual basic is given below.

Explanation:

  • The text box in visual basic is used to view text on a page  when executing a VB Net application where as  label control in visual basic helps you to put detailed text, so the user doesn't need to modify the text.
  • Following are the syntax to allocate a value of text box  and label in Visual basic

       Dim va1 As String

       var1 = TextBox2.Text

       Dim Lal3 As New Label

       Lal3.Text = "label"

  • In the visual basic client could insert data in a text box  from the clipboard into the computer screen where as the objective of label in visual basic to recognize controls without a Context domain.

Learn More:

  • brainly.in/question/13489858

Similar questions