|
-
Jan 4th, 2001, 08:55 PM
#1
Thread Starter
Lively Member
I can't Set the Seletected Property of the tabstrip or even read from it. It gives me only one MDI form allowed...
Any sugestions?????
Thanks for helping or even trying.
-
Jan 4th, 2001, 09:04 PM
#2
Addicted Member
There is no Selected property for the TabStrip Control. Maybe you're looking for the SelectedItem property?
Or something else???
-
Jan 4th, 2001, 09:24 PM
#3
Thread Starter
Lively Member
There's One
if you go tabstrip1.tabs.item(Item Index).selected then there is.
-
Jan 4th, 2001, 09:28 PM
#4
Addicted Member
Yep, sure is. It works ok for me though. I can set it and I can get it to return a boolean.
[Edited by eer3 on 01-04-2001 at 09:34 PM]
-
Jan 5th, 2001, 01:50 AM
#5
Thread Starter
Lively Member
Try this code out.
Put tabstrip in form, Let's call the form Form1, and create another form.
Put this piece of code in the Newform's Activate event.
Form1.tabstrip1.tabs(indexNumber).selected = true
Where indexNumber is an avaible tab number in the tab control..
and it will give you a the message above. If you try this with Microsoft Windows Common Controls 6.0 then it works.
-
Jan 5th, 2001, 12:06 PM
#6
Addicted Member
It still works fine for me...
Using the Common Controls 5.0(sp2) components... I assumed that Form1 was your startup object. On Form1 I placed TabStrip with 3 tabs in it, then a command button with "Form2.Show" in its click event. I placed your code in Form2's activate event "Form1.tabstrip1.tabs(2).selected = true".
Am I missing anything? Does it fail in the VB Environment or only after compiled?
By the way, I ran this on an NT 4.0 SP4 machine, VB6 sp3.
I have a Win98 machine that I can test this on later today.
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
|