Computer Science, asked by hammadsiddiqui969, 1 year ago

what is the difference between TextBox and Label

Answers

Answered by tejasgupta
103

Hi. In terms of Visual Studio Windows Form Applications, A Label is a control which is used to display some text onto the form whereas, A TextBox control is used to input data from the user. In terms of HTML, textbox may be the value of the type attribute of the input tag used in html forms while the label tag may be used to label the parts of a form. Hope it helps!

Answered by suit89
3

TextBox

A text box, also known as a text field or text entry box, is a control element of a graphical user interface that allows the user to enter text data that will be used by the application.

Label

A label is a piece of paper, plastic film, fabric, metal, or other material adhered to a container or product and on which information or symbols regarding the product or item are written or printed.

Difference between TextBox and Label

  • TextBoxes are used when you need to get input from your user, perform an edit operation, or allow a copy (Ctrl+C) of the text even if you don't want any editing.
  • Labels are used for text to be displayed (information for the user), and TextBoxes are used when you need to get input from your user, perform an edit operation, or allow a copy (Ctrl+C) of the text even if you don't want any editing. Of course, TextBox uses more system resources, but the difference is insignificant.

#SPJ2

Similar questions