|
-
Aug 27th, 2007, 03:53 PM
#1
Thread Starter
Addicted Member
[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?
Last edited by Neverbirth; Aug 28th, 2007 at 04:00 AM.
Reason: Thread not resolve...
-
Aug 28th, 2007, 02:50 AM
#2
Thread Starter
Addicted Member
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.
-
Aug 28th, 2007, 03:59 AM
#3
Thread Starter
Addicted Member
Re: [2005] Forcing the paint at design time? (Problem using ToolStripControlHost)
 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??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|