PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Tabcontrol/tabpages not visible

Reply

Tabcontrol/tabpages not visible

 
Thread Tools Rate Thread
Old 20-04-2004, 04:06 PM   #1
=?Utf-8?B?UmFq?=
Guest
 
Posts: n/a
Default Tabcontrol/tabpages not visible


Hi! I am using a tabcontrol with two tabpages on a form.Each of the tabpages has a panel with some controls on them. When I run the application, I can see only the controls on the first panel of the first tabpage. I cannot see the tabs on the tabcontrol. What am I missing
Any suggestions/help would be great :-
Thanks for your time
Raj
  Reply With Quote
Old 20-04-2004, 08:57 PM   #2
Maarten Struys, eMVP
Guest
 
Posts: n/a
Default Re: Tabcontrol/tabpages not visible

Did you create the tabcontrol using the designer? If not, did you make sure
to add the tabpage to the tabcontrol, e.g.
this.tabControl1.Controls.Add(this.tabPage2);

Perhaps you can show us the code to create the tabcontrol and the tabpages.
That might help us to help you further.
--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

"Raj" <anonymous@discussions.microsoft.com> wrote in message
news:E1CE6CFB-18CE-4089-9AA4-231A8A210346@microsoft.com...
> Hi! I am using a tabcontrol with two tabpages on a form.Each of the

tabpages has a panel with some controls on them. When I run the application,
I can see only the controls on the first panel of the first tabpage. I
cannot see the tabs on the tabcontrol. What am I missing?
> Any suggestions/help would be great :-)
> Thanks for your time,
> Raj



  Reply With Quote
Old 20-04-2004, 11:01 PM   #3
=?Utf-8?B?UmFq?=
Guest
 
Posts: n/a
Default Re: Tabcontrol/tabpages not visible

I think I figured out what was going on. I assumed that the screen space on a pocket pc was 240 x 320. So when I have a menu bar, tab control, tab pages and panels, the dimensions change. The tab control doesn't align automatically vertically but it does so horizontally with the form. So when creating the tabcontrol, I have to take into account the height of the menu bar; for panels, the height of the tabpage title-text has to be taken into account (when I use panels on tab pages)

I am not sure if I make any sense but I am still playing with the UI controls and referring to
http://msdn.microsoft.com/library/d...Iguide_start.as
for design issue

Thank you for the response
Regards
Raj
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off