TabControl... always on top?

Z

Zanna

Hi!

I wonder if there is a way to get the tabcontrol not to be always
anchored to the top of the form.

I tryed also to put a panel to do as a placeolder but don't work :(

I need the top of the form free and the TabControl on the bottom.

Some way to do this?

Thanks
 
S

Serg Kuryata [MS]

You can parent the TabControl by a panel instead of a form and then place
the panel wherever you want. For example:

this.Controls.Add(this.panel);
this.panel.Bounds = new Rectangle(10, 50, 220, 100);
this.panel.Controls.Add(this.tabControl);

Hope this helps.
Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Zanna <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: TabControl... always on top?
| Date: Fri, 26 Mar 2004 09:13:50 +0100
| Lines: 14
| Message-ID: <[email protected]>
| NNTP-Posting-Host: omegaadsl2.interac.it (212.183.161.218)
| Mime-Version: 1.0
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| X-Trace: news.uni-berlin.de 1080288839 74881817 I 212.183.161.218
([184808])
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
Gecko/20031007
| X-Accept-Language: en-us, en
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED0
1.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-o
nline.de!t-online.de!fu-berlin.de!uni-berlin.de!omegaadsl2.interac.IT!not-fo
r-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:49552
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi!
|
| I wonder if there is a way to get the tabcontrol not to be always
| anchored to the top of the form.
|
| I tryed also to put a panel to do as a placeolder but don't work :(
|
| I need the top of the form free and the TabControl on the bottom.
|
| Some way to do this?
|
| Thanks
|
|
|
 
G

gie

Hi,

if you want the Top Control of Form you must add your control on
TopLevelControl.
For example:
this.TopLevelControl.Controls.Add(this.MyControl);

Gie
Serg Kuryata said:
You can parent the TabControl by a panel instead of a form and then place
the panel wherever you want. For example:

this.Controls.Add(this.panel);
this.panel.Bounds = new Rectangle(10, 50, 220, 100);
this.panel.Controls.Add(this.tabControl);

Hope this helps.
Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Zanna <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: TabControl... always on top?
| Date: Fri, 26 Mar 2004 09:13:50 +0100
| Lines: 14
| Message-ID: <[email protected]>
| NNTP-Posting-Host: omegaadsl2.interac.it (212.183.161.218)
| Mime-Version: 1.0
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| X-Trace: news.uni-berlin.de 1080288839 74881817 I 212.183.161.218
([184808])
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
Gecko/20031007
| X-Accept-Language: en-us, en
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!omegaadsl2.interac.IT!not-fo
r-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:49552
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi!
|
| I wonder if there is a way to get the tabcontrol not to be always
| anchored to the top of the form.
|
| I tryed also to put a panel to do as a placeolder but don't work :(
|
| I need the top of the form free and the TabControl on the bottom.
|
| Some way to do this?
|
| Thanks
|
|
|
 

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