how to change properties of label using button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • punjabplus
    New Member
    • Mar 2009
    • 12

    #1

    how to change properties of label using button

    as we change the height and width of a label by changing the properties like this can we do this with coding like i want to enter the value of height and width through a textbox and by click on the button the corresponding label and height change, plz i need this urgently help me and thanks in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Are you developing an ASP.NET web application or a Forms application?
    What .NET language are you using to develop your solution?

    Comment

    • selvamariappan
      New Member
      • Sep 2008
      • 26

      #3
      Hi
      Try this it will be useful for you
      in the button click write the code

      for eg,
      label1.Style.Ad d("width", "60px")
      label1.Style.Ad d("height", "40px")
      regards
      selvamariappan. c

      Comment

      Working...