Custom Rollover Image Control
I'm creating a custom rollover image control, which inherits from WebControl. Everything works great except when I initially drop the control on the page and set the BaseImage property, it doesn't fill in the imagebox with the image I have specified.
If you drop a .NET Image control on a page, initially the image doesn't appear, until you set the ImageUrl property, then the image appears.
How can I refresh the control in the IDE to show the image that was set? Basically, duplicate the functionality of having the image appear when the property is set.
Do you know about designers?
If so look at the ControlDesigner's RaiseComponentChanged and RaiseComponentChanging members. Also, check out GetDesignTimeHtml, GetErrorDesignTimeHtml, and GetEmptyDesignTimeHtml.
I don't have a good working example to post. Sorry.