Click here to Skip to main content
15,990,892 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I've a problem in the repainting of the listView controls in the tab pages.
Actually the problem is I've 6 tab pages in a tab control,
in that 3 tab pages having listview controls, when we navigate from 1 page to another, the listview is not coming and at that place the previous page controls are displaying. If we resize the form the list view controls are displaying properly. for every time we need to resize the main form for displaying the listview controls.
Can any one help me...

Regards,
Harish Reddy
Posted
Comments
BillWoodruff 10-Nov-11 9:19am    
Is this WinForms, WPF, ASP.NET, or ?

If WinForms: Are you sub-classing the TabControl, and using your own Paint event ?

If WinForms: What view-mode are your ListView's in: Details ?
Harish Reddy K 16-Nov-11 0:54am    
hi...
it is in winforms only..
the tab control is a separate class. i didn't use the paint event for the control repainting. it is in the detail view only. By default it is in detail view. we are not providing the options for other views.

1 solution

Maybe I should wait for your answers t BillWooodruffs VERY GOOD questions. but I assume this is WinForms. Have a look at Controls Refesh() method. If you have some kind of painting in place (sounds so, because resize triggers a repaint if ResizeRedraw is enabled) post your code (or the important parts).
 
Share this answer
 
Comments
Harish Reddy K 16-Nov-11 1:15am    
hi..
I tried the Refresh() API for the each control which are in the curenttab in SelectedIndexChanged event.
then also it is not working.
May be i think we have to write the code for the paint event for displaying the outline of the ListView

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900