Results 1 to 3 of 3

Thread: [2005] Forcing the paint at design time? (Problem using ToolStripControlHost)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    Resolved [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...

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    160

    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??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width