Viewing Usercontrol Property Changes at Design Time

J

jdp

I have a usercontrol composed of a label and textbox. I've created a
custom property, LabelText, that I can assign at run time. What I'd
like to see is if I place a value in LabelText in the Property Window
at design time, to see the usercontrol update itself with this value.

How is this accomplished?

Any feedback is appreciated.
 
M

Micke Andersson

Well, for Windows Forms components, your set accessor on the public property
generally includes a call to Invalidate() .. have you looked for something
similar for the web control?

I'm sorry I can't be more specific than this, I wrestle more with custom
designers than property editors atm :)

/Micke
 
J

jdp

Thanks for the reply.

To be honest, I'm not quite sure I understand what you're referring to.
If you explain more about the Invalidate() or point me to a site that
explains things a little more, I'd appreciate it.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top