Codebehind

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WebNewbie
    New Member
    • Jul 2007
    • 15

    Codebehind

    Hi, normally when you drag a control from the toolbox to the form, code for that control will automatically be generated in the codebehind. For an unknown reason when I drag the Label control on to the form that did not happen. Would you please help me fix this problem? Thank you in advance for your help.
  • gchq
    New Member
    • Jan 2007
    • 96

    #2
    A label control (unlike a TextBox control) is quite static in nature. With most controls you can double click them and they will start the codebehind sub and end sub for you. A label you can only refer to in your code (Label1.Text = "Hello" - Label1.Forecolo r = Red).

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Hi WebNewbie!

      I have moved your question to the .NET forum. The .NET Articles section is reserved for articles that are purely informational; like "how-tos" etc. The .NET Forum is the place for your questions. In the future please post your questions here (Blue Menu Along the Top: Forums->.NET).

      -Frinny

      Comment

      Working...