[2005] Forcing the paint at design time? (Problem using ToolStripControlHost)
I'm having problems using ToolStripControlHost.
I want to wrap a control I made some time ago, but since I fully draw it using the Paint event at run-time it's like the control is empty, so nothing happens when adding it to the strip (either at design or run time), if I want to make it appear I have to wrap the control inside another control so it's then drawn at design-time, and I find it to be annoying...
Any further tip?
Re: [2005] Forcing the paint at design time? (Problem using ToolStripControlHost)
I've found out that instead of using the paint event of the usercontrol is better to override the OnPaint sub, and while it doesn't force the paint at design time it does fix the ToolStripControlHost problem, which was the reason of the thread.
Re: [2005] Forcing the paint at design time? (Problem using ToolStripControlHost)
Quote:
Originally Posted by Neverbirth
I've found out that instead of using the paint event of the usercontrol is better to override the OnPaint sub, and while it doesn't force the paint at design time it does fix the ToolStripControlHost problem, which was the reason of the thread.
Damn... I thought this solved my problem... but I didn't realize I was using an old copy of the control that wraps the main control...
Overriding the OnPaint sub doesn't solve the problem... any help??