Oddball tabcontrol issue

E

Earl

I've got a tabcontrol on a form with 8 tabs, and I have the left-right
arrows on the right in order to show the tabs that cannot be displayed. This
looks fine in the designer, however running it on the emulator or on the PPC
results in the right arrow being pretty much cutoff (slightly visible). I've
tried resizing the form and the tabcontrol, but there seems to be no way to
size the tabcontrol properly in order to show that right arrow. I'm a bit
puzzled by this one. Is this a "known issue" and is there some sort of
workaround?
 
S

Serg Kuryata [MS]

Hello,

Could you please post a sample application that reproduces the problem? I
also wonder what version of the .NET Compact Framework is installed on your
device.

Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Earl" <[email protected]>
| From: "Earl" <[email protected]>
| Subject: Oddball tabcontrol issue
| Date: Wed, 17 Nov 2004 00:23:39 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net 68.57.249.69
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:65254
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I've got a tabcontrol on a form with 8 tabs, and I have the left-right
| arrows on the right in order to show the tabs that cannot be displayed.
This
| looks fine in the designer, however running it on the emulator or on the
PPC
| results in the right arrow being pretty much cutoff (slightly visible).
I've
| tried resizing the form and the tabcontrol, but there seems to be no way
to
| size the tabcontrol properly in order to show that right arrow. I'm a bit
| puzzled by this one. Is this a "known issue" and is there some sort of
| workaround?
|
|
|
 
E

Earl

Thanks Serg. I'm still mulling this issue. Very odd, because this is my only
CF app that shows this problem. The app is nearly finished so I now need to
resolve this. I'm not real sure what I can send you as a sample app to show
the problem, except maybe a screen shot. The version is v1.0.5000.
 
E

Earl

I've found the issue: there is panel containing the tabcontrol (not sure why
I did this, but it's been too long ago). Trying to remove the containing
panel has proved to be quite tricky, because cutting the tabcontrol, then
deleting the panel, then pasting the tabcontrol back in not only forces me
to recreate the handles, but more importantly, it generates an exception in
InitializeComponent(). I've been able to easily deal with removing
containers in the past, but there were few controls thereon -- this scenario
creates quite a mess because of the dozens of controls on the tabs. Any
advice would be welcomed.
 
S

Serg Kuryata [MS]

If you need to remove the TabControl from the panel, you don't have to use
the designer to accomplish that. You can just do it manual in the code.
There should be a line of code in the InitializeComponents method that adds
the TabControl to the Panel. Something like this:

this.panel.Controls.Add(this.tabControl);

Please just replace this line with the following line. It will remove the
TabControl from the Panel and add it to the Form:

this.Controls.Add(this.tabControl);

Don't forget to remove the panel from the form otherwise it may cover and
hide your controls.

Hope this helps,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Earl" <[email protected]>
| From: "Earl" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: Oddball tabcontrol issue
| Date: Mon, 29 Nov 2004 18:26:22 -0500
| Lines: 76
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net 68.57.249.69
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:66000
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I've found the issue: there is panel containing the tabcontrol (not sure
why
| I did this, but it's been too long ago). Trying to remove the containing
| panel has proved to be quite tricky, because cutting the tabcontrol, then
| deleting the panel, then pasting the tabcontrol back in not only forces
me
| to recreate the handles, but more importantly, it generates an exception
in
| InitializeComponent(). I've been able to easily deal with removing
| containers in the past, but there were few controls thereon -- this
scenario
| creates quite a mess because of the dozens of controls on the tabs. Any
| advice would be welcomed.
|
| | > Thanks Serg. I'm still mulling this issue. Very odd, because this is my
| > only CF app that shows this problem. The app is nearly finished so I
now
| > need to resolve this. I'm not real sure what I can send you as a sample
| > app to show the problem, except maybe a screen shot. The version is
| > v1.0.5000.
| >
| > | >> Hello,
| >>
| >> Could you please post a sample application that reproduces the
problem? I
| >> also wonder what version of the .NET Compact Framework is installed on
| >> your
| >> device.
| >>
| >> Thank you,
| >> Sergiy.
| >>
| >> This posting is provided "AS IS" with no warranties, and confers no
| >> rights.
| >> --------------------
| >> | Reply-To: "Earl" <[email protected]>
| >> | From: "Earl" <[email protected]>
| >> | Subject: Oddball tabcontrol issue
| >> | Date: Wed, 17 Nov 2004 00:23:39 -0500
| >> | Lines: 10
| >> | X-Priority: 3
| >> | X-MSMail-Priority: Normal
| >> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| >> | X-RFC2646: Format=Flowed; Original
| >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| >> | Message-ID: <[email protected]>
| >> | Newsgroups: microsoft.public.dotnet.framework.compactframework
| >> | NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net
68.57.249.69
| >> | Path:
| >>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
| >> phx.gbl
| >> | Xref: cpmsftngxa10.phx.gbl
| >> microsoft.public.dotnet.framework.compactframework:65254
| >> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| >> |
| >> | I've got a tabcontrol on a form with 8 tabs, and I have the
left-right
| >> | arrows on the right in order to show the tabs that cannot be
displayed.
| >> This
| >> | looks fine in the designer, however running it on the emulator or on
| >> the
| >> PPC
| >> | results in the right arrow being pretty much cutoff (slightly
visible).
| >> I've
| >> | tried resizing the form and the tabcontrol, but there seems to be no
| >> way
| >> to
| >> | size the tabcontrol properly in order to show that right arrow. I'm
a
| >> bit
| >> | puzzled by this one. Is this a "known issue" and is there some sort
of
| >> | workaround?
| >> |
| >> |
| >> |
| >>
| >
| >
|
|
|
 
E

Earl

Very helpful advice Serg! Thanks.

Serg Kuryata said:
If you need to remove the TabControl from the panel, you don't have to use
the designer to accomplish that. You can just do it manual in the code.
There should be a line of code in the InitializeComponents method that
adds
the TabControl to the Panel. Something like this:

this.panel.Controls.Add(this.tabControl);

Please just replace this line with the following line. It will remove the
TabControl from the Panel and add it to the Form:

this.Controls.Add(this.tabControl);

Don't forget to remove the panel from the form otherwise it may cover and
hide your controls.

Hope this helps,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
| Reply-To: "Earl" <[email protected]>
| From: "Earl" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: Oddball tabcontrol issue
| Date: Mon, 29 Nov 2004 18:26:22 -0500
| Lines: 76
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net 68.57.249.69
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:66000
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I've found the issue: there is panel containing the tabcontrol (not sure
why
| I did this, but it's been too long ago). Trying to remove the containing
| panel has proved to be quite tricky, because cutting the tabcontrol,
then
| deleting the panel, then pasting the tabcontrol back in not only forces
me
| to recreate the handles, but more importantly, it generates an exception
in
| InitializeComponent(). I've been able to easily deal with removing
| containers in the past, but there were few controls thereon -- this
scenario
| creates quite a mess because of the dozens of controls on the tabs. Any
| advice would be welcomed.
|
| | > Thanks Serg. I'm still mulling this issue. Very odd, because this is
my
| > only CF app that shows this problem. The app is nearly finished so I
now
| > need to resolve this. I'm not real sure what I can send you as a
sample
| > app to show the problem, except maybe a screen shot. The version is
| > v1.0.5000.
| >
| > | >> Hello,
| >>
| >> Could you please post a sample application that reproduces the
problem? I
| >> also wonder what version of the .NET Compact Framework is installed
on
| >> your
| >> device.
| >>
| >> Thank you,
| >> Sergiy.
| >>
| >> This posting is provided "AS IS" with no warranties, and confers no
| >> rights.
| >> --------------------
| >> | Reply-To: "Earl" <[email protected]>
| >> | From: "Earl" <[email protected]>
| >> | Subject: Oddball tabcontrol issue
| >> | Date: Wed, 17 Nov 2004 00:23:39 -0500
| >> | Lines: 10
| >> | X-Priority: 3
| >> | X-MSMail-Priority: Normal
| >> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| >> | X-RFC2646: Format=Flowed; Original
| >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| >> | Message-ID: <[email protected]>
| >> | Newsgroups: microsoft.public.dotnet.framework.compactframework
| >> | NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net
68.57.249.69
| >> | Path:
| >>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
| >> phx.gbl
| >> | Xref: cpmsftngxa10.phx.gbl
| >> microsoft.public.dotnet.framework.compactframework:65254
| >> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| >> |
| >> | I've got a tabcontrol on a form with 8 tabs, and I have the
left-right
| >> | arrows on the right in order to show the tabs that cannot be
displayed.
| >> This
| >> | looks fine in the designer, however running it on the emulator or
on
| >> the
| >> PPC
| >> | results in the right arrow being pretty much cutoff (slightly
visible).
| >> I've
| >> | tried resizing the form and the tabcontrol, but there seems to be
no
| >> way
| >> to
| >> | size the tabcontrol properly in order to show that right arrow. I'm
a
| >> bit
| >> | puzzled by this one. Is this a "known issue" and is there some sort
of
| >> | workaround?
| >> |
| >> |
| >> |
| >>
| >
| >
|
|
|
 
S

Serg Kuryata [MS]

Please let me know if there is anything else I can help you with.

Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Earl" <[email protected]>
| From: "Earl" <[email protected]>
| References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
| Subject: Re: Oddball tabcontrol issue
| Date: Wed, 1 Dec 2004 21:03:12 -0500
| Lines: 148
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net 68.57.249.69
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
..phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:66181
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Very helpful advice Serg! Thanks.
|
| | > If you need to remove the TabControl from the panel, you don't have to
use
| > the designer to accomplish that. You can just do it manual in the code.
| > There should be a line of code in the InitializeComponents method that
| > adds
| > the TabControl to the Panel. Something like this:
| >
| > this.panel.Controls.Add(this.tabControl);
| >
| > Please just replace this line with the following line. It will remove
the
| > TabControl from the Panel and add it to the Form:
| >
| > this.Controls.Add(this.tabControl);
| >
| > Don't forget to remove the panel from the form otherwise it may cover
and
| > hide your controls.
| >
| > Hope this helps,
| > Sergiy.
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| > rights.
| > --------------------
| > | Reply-To: "Earl" <[email protected]>
| > | From: "Earl" <[email protected]>
| > | References: <[email protected]>
| > <[email protected]>
| > <[email protected]>
| > | Subject: Re: Oddball tabcontrol issue
| > | Date: Mon, 29 Nov 2004 18:26:22 -0500
| > | Lines: 76
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Response
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net 68.57.249.69
| > | Path:
| >
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
| > phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:66000
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | I've found the issue: there is panel containing the tabcontrol (not
sure
| > why
| > | I did this, but it's been too long ago). Trying to remove the
containing
| > | panel has proved to be quite tricky, because cutting the tabcontrol,
| > then
| > | deleting the panel, then pasting the tabcontrol back in not only
forces
| > me
| > | to recreate the handles, but more importantly, it generates an
exception
| > in
| > | InitializeComponent(). I've been able to easily deal with removing
| > | containers in the past, but there were few controls thereon -- this
| > scenario
| > | creates quite a mess because of the dozens of controls on the tabs.
Any
| > | advice would be welcomed.
| > |
| > | | > | > Thanks Serg. I'm still mulling this issue. Very odd, because this
is
| > my
| > | > only CF app that shows this problem. The app is nearly finished so I
| > now
| > | > need to resolve this. I'm not real sure what I can send you as a
| > sample
| > | > app to show the problem, except maybe a screen shot. The version is
| > | > v1.0.5000.
| > | >
| > | > | > | >> Hello,
| > | >>
| > | >> Could you please post a sample application that reproduces the
| > problem? I
| > | >> also wonder what version of the .NET Compact Framework is
installed
| > on
| > | >> your
| > | >> device.
| > | >>
| > | >> Thank you,
| > | >> Sergiy.
| > | >>
| > | >> This posting is provided "AS IS" with no warranties, and confers no
| > | >> rights.
| > | >> --------------------
| > | >> | Reply-To: "Earl" <[email protected]>
| > | >> | From: "Earl" <[email protected]>
| > | >> | Subject: Oddball tabcontrol issue
| > | >> | Date: Wed, 17 Nov 2004 00:23:39 -0500
| > | >> | Lines: 10
| > | >> | X-Priority: 3
| > | >> | X-MSMail-Priority: Normal
| > | >> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | >> | X-RFC2646: Format=Flowed; Original
| > | >> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | >> | Message-ID: <[email protected]>
| > | >> | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | >> | NNTP-Posting-Host: pcp02482226pcs.spedwy01.in.comcast.net
| > 68.57.249.69
| > | >> | Path:
| > | >>
| >
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10
| > | >> phx.gbl
| > | >> | Xref: cpmsftngxa10.phx.gbl
| > | >> microsoft.public.dotnet.framework.compactframework:65254
| > | >> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > | >> |
| > | >> | I've got a tabcontrol on a form with 8 tabs, and I have the
| > left-right
| > | >> | arrows on the right in order to show the tabs that cannot be
| > displayed.
| > | >> This
| > | >> | looks fine in the designer, however running it on the emulator
or
| > on
| > | >> the
| > | >> PPC
| > | >> | results in the right arrow being pretty much cutoff (slightly
| > visible).
| > | >> I've
| > | >> | tried resizing the form and the tabcontrol, but there seems to
be
| > no
| > | >> way
| > | >> to
| > | >> | size the tabcontrol properly in order to show that right arrow.
I'm
| > a
| > | >> bit
| > | >> | puzzled by this one. Is this a "known issue" and is there some
sort
| > of
| > | >> | workaround?
| > | >> |
| > | >> |
| > | >> |
| > | >>
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|
 

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

Similar Threads


Top