Results 1 to 6 of 6

Thread: Microsoft Windows Commond Controls 5.0 (sp2)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Exclamation

    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.
    ngphuocthinh

  2. #2
    Addicted Member eer3's Avatar
    Join Date
    Sep 2000
    Location
    Ca
    Posts
    165
    There is no Selected property for the TabStrip Control. Maybe you're looking for the SelectedItem property?

    Or something else???

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    There's One

    if you go tabstrip1.tabs.item(Item Index).selected then there is.
    ngphuocthinh

  4. #4
    Addicted Member eer3's Avatar
    Join Date
    Sep 2000
    Location
    Ca
    Posts
    165
    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]

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    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.
    ngphuocthinh

  6. #6
    Addicted Member eer3's Avatar
    Join Date
    Sep 2000
    Location
    Ca
    Posts
    165

    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
  •  



Click Here to Expand Forum to Full Width