Using the tab control

  • Thread starter Thread starter JoelB
  • Start date Start date
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
 
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
 
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
 
Don't know if I'd go *that* far! Maybe just "smarter than the average
bear".... :)
 
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...
 
Back
Top