Using the tab control

J

JoelB

In eVB we didn't use the tab control because we couldn't get the tabs on
top; instead we rolled our own, using labels and frames. Now we are wriging
a new app in VB.NET, and we are disappointed to find that they have carried
the same shortcoming of the tab control over to .NET!! (does anyone know
why they would do that?)

Anyway, we are tempted to use the tab control this time anyway, except for
the added problem that I can't find a way to keep the control from obscuring
the top of the screen. Does anyone know why it doesn't behave like a
normal control and allow positioning on the screen, and does anyone have a
workaround?

Thanks,
Joel
 
C

Chris Tacke, eMVP

It's not a shortcoming of the framework, it's a design requirement forced by
Pocket PC. If you use the same control on a vanilla CE device the tabs are
at the top. To get it to position other than at 0,0 put it in a Panel
 
J

JoelB

You're a genius. Thanks Chris!

Chris Tacke said:
It's not a shortcoming of the framework, it's a design requirement forced
by Pocket PC. If you use the same control on a vanilla CE device the tabs
are at the top. To get it to position other than at 0,0 put it in a Panel
 
C

Chris Tacke, eMVP

Don't know if I'd go *that* far! Maybe just "smarter than the average
bear".... :)
 
C

Craig Deelsnyder

In eVB we didn't use the tab control because we couldn't get the tabs on
top; instead we rolled our own, using labels and frames. Now we are
wriging
a new app in VB.NET, and we are disappointed to find that they have
carried
the same shortcoming of the tab control over to .NET!! (does anyone know
why they would do that?)

Anyway, we are tempted to use the tab control this time anyway, except
for
the added problem that I can't find a way to keep the control from
obscuring
the top of the screen. Does anyone know why it doesn't behave like a
normal control and allow positioning on the screen, and does anyone have
a
workaround?

Thanks,
Joel

Actually there is a 'third-party' tabcontrol that allows this. It was
included in an MSDN article, and has other useful features such as not
loading all tabpages at once and autosizing when SIP is enabled:

http://msdn.microsoft.com/msdnmag/issues/04/12/NETCompactFramework/default.aspx

worth a try if you're up to using a 'non-standard' component...
 

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