TabControl - Blank Tabs

  • Thread starter Thread starter Jon Berry
  • Start date Start date
J

Jon Berry

My form has a tab control with 3 tabs on it.

Once in a while when I launch the app the first tab shows
but the other two tabs are blank (no controls on it) when
I click on them.

If I close the app and restart it seems to fix the problem.

Any idea what the problem is?

Thanks!
 
My form has a tab control with 3 tabs on it.

Once in a while when I launch the app the first tab shows
but the other two tabs are blank (no controls on it) when
I click on them.

If I close the app and restart it seems to fix the problem.

Any idea what the problem is?

Thanks!

How are you adding the controls to the tab?
are you running it from the IDE?
 
The problem is obviously in your initialization code somehow. But, what
that might be is impossible for anyone else to say without a
concise-but-complete code sample that reliably demonstrates the problem.

Pete

I'm looked through the form designer generated code and I spotted this:

((System.ComponentModel.ISupportInitialize)(this.portBox)).EndInit();

What does this do exactly?

This occurs right after the init for the tab that sometimes doesn't show.
 
Peter Duniho said:
[...]
I guess this is not a known problem??

You haven't actually identified the problem yet, so it would be premature
to say whether it's "known" or not.

I'm starting to think the problem is because I have a clickonce version of
this app
and I may have started two instances. I'll keep an eye on this.
 
Back
Top