When you press a button I want to turn labels(with their current value) into textboxes.

Recommended Answers

To get proper help post your codes, how far have you done and also the error you have faced at run time. And also make a distinct question on that matter.

Ok!

1st Option :
Take a TextBox, set Visible = False. Top & Left are same as the Label …

Jump to Post

All 2 Replies

To get proper help post your codes, how far have you done and also the error you have faced at run time. And also make a distinct question on that matter.

Ok!

1st Option :
Take a TextBox, set Visible = False. Top & Left are same as the Label Control.

At Button Click event Set TextBox Visible Property to True and Label's Visible Property to Flase and Text1.Text=Label1.Text.

2nd Option :
In place of Label take TextBox. Set TextBox Enabled to False and Border property to None.

At Button Click event Set TextBox Enabled Property to True and Border to FixedSingle.

Also, please title your post to describe your question. For example, for this post, you could have used "Labels to textboxes".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.