Results 1 to 17 of 17

Thread: Create a tab?

  1. #1

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79

    Create a tab?

    How can I create a tab on my form? I was going to use multiple forms but I think tabs would be cleaner for the user.

  2. #2
    Lively Member
    Join Date
    Mar 2002
    Location
    Warrington, England
    Posts
    70
    there is a tab control you can place on your form
    Its not a bug
    Its a undocumented feature !

  3. #3

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    Do I need to import it? I can't seem to find it.

  4. #4
    Lively Member
    Join Date
    Mar 2002
    Location
    Warrington, England
    Posts
    70
    click projects
    click components
    then find microsoft tabbed dialog control
    tick the box and apply

    if you do not find it this way
    do a search for tabctl32.ocx

    and browse to it
    Its not a bug
    Its a undocumented feature !

  5. #5

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    Cool thanks!

    Now that I've created 5 tabs, how can I have the information on each tab be different? I've got 3 frames created for tab1 but they show up on all 5 tabs.

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Are you using the TabStrip control or the SSTab control?

  7. #7

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    SSTab control.

  8. #8
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    The way I do it is to create multiple FRAME controls and the when a user clicks a tab, I ZOrder the appropriate frame (bringing it to the front or top).
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  9. #9
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you move a control, that wasn't first created on the tab, to a tab then it's parent is the form and it will stay, if you create it initially on the tab or cut and paste it right on to the tab it should have the tab as its parent and work right.

  10. #10

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    I'm not sure I follow. I created my form, added the tab component, then added the tab to my form. Then I created three frames on the first tab thinking those three frames would only stay on that one tab. Should I go about this some other way?

  11. #11
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Hmm that shoulda worked! What I meant was sometimes it gets freaky when you create a control on the form and then try to move it onto the Tab.

  12. #12

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    Oh ok, I see. Well I'm not sure why this would be happening to me. Maybe I'm missing a property setting or something? Any ideas?

  13. #13
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    I never got the tab control to handle it automatically.

    What I ended up having to do is modify those ZOrders to pull the right frame above the other frames, and I think you are going to have to do that also.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  14. #14
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Here is an old build of a program of mine that uses this sort of a feature.

    Go ahead and check out how I did it
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

  15. #15
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You shouldn't need any props, that is wierd here I know it works check it out (attached).

  16. #16
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    Edneeis is right...
    Originally posted by Fool
    I'm not sure I follow. I created my form, added the tab component, then added the tab to my form. Then I created three frames on the first tab thinking those three frames would only stay on that one tab. Should I go about this some other way?
    When you created the frames, if you did so by double-clicking the tool, then the frame was placed on the form and not on the tab. Make sure the tab you want is foremost and then draw the control onto the tab.

  17. #17

    Thread Starter
    Lively Member Fool's Avatar
    Join Date
    Sep 2001
    Location
    Glen Allen, VA
    Posts
    79
    Originally posted by John McKernan
    When you created the frames, if you did so by double-clicking the tool, then the frame was placed on the form and not on the tab. Make sure the tab you want is foremost and then draw the control onto the tab.
    That did it. Thanks!

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