none
tabpage redraw partially. windows xp. framework 2. RRS feed

  • Question

  • i select tab. but it has some elements from previous tabpage. on win 7 it is not reproduced.

    try to add on event pageindex changed add methods: 

    this.Invalidate(true);
                tabMain.Invalidate(true);
                TabPage page = tabMain.SelectedTab;
                page.Refresh();
    this.Update();

    but wothout any result.

    first tab and second tab:


    Friday, June 15, 2012 1:02 PM

All replies

  • What do you get if you remove the Invalidates and Updates and use only Refreshes?
    Friday, June 15, 2012 1:35 PM
  • i try 2 variants:

    page.Refresh();

    this.Refresh();

    without any results .

    Friday, June 15, 2012 1:38 PM
  • You have serious problems if Refresh doesn't redraw the control.  Refresh should invalidate the entire control and then update it.
    Friday, June 15, 2012 1:41 PM
  • i use  standard tabpage and other controls. 
    Friday, June 15, 2012 2:58 PM
  • Hi AndreSnake,

    Welcome to the MSDN Forum.

    Can you reproduce this scenario just a few controls in the tabpage?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, June 18, 2012 12:55 PM
    Moderator