Results 1 to 2 of 2

Thread: Redrawing graphics in userControl - Button

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Question Redrawing graphics in userControl - Button

    Hi all,

    I've created a Custom button control and i'm drawing the graphics for the button when the paint event is fired. I used Invalidate method to redraw the graphics in events like mousemove, click etc.

    My problem is as follows: I created a test application to test the created custom button control. I had two buttons on the form. When i click on one button 1 a message box is showed. This message box covers one part of the other button 2 in the form. When i dismiss the message box in such a way that the mouse is not over button 2, a part of the text in caption of button2 disappears. But what ever may be the case, button 1 appears properly as i have called invalidate during the click event for that button1.

    I understand that some event would be fired in button2 when i dismiss the message box, during which i need to call Invalidate? Can some one tell me where to call Invalidate to repaint the graphics in the button2.

    Thanks in advance,
    Sugan
    Chennai, INDIA.

  2. #2

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Re: Redrawing graphics in userControl - Button

    Sorry Guys. Posted in a wrong forum
    Sugan
    Chennai, INDIA.

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