I have a TabControl with 4 TabPages.
Each of them has a listbox in it.... which i populate using data from a database.
Sometimes each listbox can contain a few thousand ListItems.
I am populating all my listboxes at the same time when the form loads.
The problem I'm facing is as below:
After the listobx populating process is over,
if I click on the Second TAB(which contains a listbox with about 15000+ items in it), it a takes a while for the tab to display the controls in it.
BUT now if i move to another tab and then Back to the second Tab, the controls are displayed instantly.
In other words, only when i click a Tab (that has a listbox with many items in it) for the first time, it takes times to display the controls.
Now if I hide the form and then show the form again, I get the same problem. The first time i click on tabs that have a number of items in its listbox take a while to display. Subsequent clicks on that same Tabs, displays the controls in it instantly.
Please, anyone could you let me know how I can get rid of this problem.