开发者

Selecting contents of Label Control

开发者 https://www.devze.com 2022-12-28 14:49 出处:网络
I have what I consider to be a pretty unique problem here开发者_开发百科, and no idea how to implement. From what I\'ve seen, there is no documentation, tutorials, samples and/or articles on this. I\'

I have what I consider to be a pretty unique problem here开发者_开发百科, and no idea how to implement. From what I've seen, there is no documentation, tutorials, samples and/or articles on this. I've spent weeks researching, with nothing to show.

The problem:

I need the user to be able to select the contents of a Label Control at runtime, and edit it.

If this can be done by extending the existing Label control, great! Or, if this requires a whole new Label Control to be created, fine. So be it.

Using a TextBox is not an option I'm afraid.

Any help at all is greatly appreciated!

Thank you,

jase


If it's just because a look & feel issue you can make a TextBox control look the same as a label would looks like (just guessing since I can't imagine any reason for not using a TextBox).


Could you pop up a window with a text box in it and then have them edit it there, then set the text property of the label based on the edited text box or do you need to edit it in place? You can set the label text at runtime, but for user input you will have to use a text box.

0

精彩评论

暂无评论...
验证码 换一张
取 消