|
-
Aug 4th, 2004, 01:32 AM
#1
Thread Starter
Member
wierd tabcontrol behavior
I have a Tabcontrol in a smart device project and it seems when porting the exe to the pocket pc that the tabs are changed in order.
In my collection i have order: Adm, Ins, Dek, Sch, Kam and Ldg
when starting the program i get order: Adm, Ins, Kam, Ldg, Dek and Sch
There is NO code that handles the order of tabs or whatever.
It's driving me mad !
thx
6f6
-
Aug 4th, 2004, 01:53 AM
#2
This is a known issue with VS NET.
The only solid workaround (that I heard of anyway) is to remove all the tabs and add them again thru code on form load or something.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Aug 4th, 2004, 04:21 AM
#3
Thread Starter
Member
tab
ok, but does this main i have to add all controls of the tabpages too using code ??
Are you saying I have to create the forms at run-time ?
-
Aug 4th, 2004, 04:29 AM
#4
No. Only the tabpages.
Something like this:
VB Code:
Private Sub Form1_Load.....
TabControl1.TabPages.Clear()
TabControl1.TabPages.Add(TabPage1)
TabControl1.TabPages.Add(TabPage2)
TabControl1.TabPages.Add(TabPage3)
.
.
.
End Sub
Then the tabs will be placed correctly, and you can still use the designer to make your tabpages. Just disregard the order while designing.
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Aug 4th, 2004, 04:35 AM
#5
Thread Starter
Member
If HisAnswerHelped=True Then
Msgbox ("Thank You !")
End If
-
Aug 4th, 2004, 05:21 AM
#6
Thread Starter
Member
THX
it's works great !!!
but the text on the TAB is gone, how do I set the text of each Tab ?
-
Aug 4th, 2004, 06:38 AM
#7
That's strange.
I don't understand why that is cleared. Mine is just fine.
Maybe it has something to do with Smart Devices. I'm just testing a regular Windows Forms Application.
Anyway, there should be a property called Text on the tabpage that you can set.
TabPage1.Text="WhatEver"
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jun 14th, 2005, 12:43 PM
#8
Lively Member
Re: wierd tabcontrol behavior
I just did this, and FINALLY! A SOLUTION!
When I say 'jump', don't waste time asking 'how high?'.

Just a poor, dumb wanna-be programmer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|