TabControl - Blank Tabs

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!
 
I

Ignacio Machin ( .NET/ C# MVP )

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?
 
J

Jon Berry

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.
 
J

Jon Berry

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top