CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    One form, multi-top-tags, multi-faces display

    When you check Windows property settings, through Control Panel, You will see that a typical interface is one window with many tags on the top. Clicking these tags leads to different infomation show in the same window. That is very cool!. I wonder how to design it in VB. Where can I find a code sample in website?



  2. #2
    Join Date
    Dec 1999
    Posts
    20

    Re: One form, multi-top-tags, multi-faces display

    Add new component "Microsoft Forms 2.0 Objects Library", to your VB ( Project -> Component).

    This would give you additional controls on the toolbox. One of them is "MultiPage". Use this. When you click on the control on the Vb form, you can insert more pages to the tag and can customize them as per your need.
    Hope this helps.





  3. #3
    Guest

    Re: One form, multi-top-tags, multi-faces display

    Thank you very much for your help!

    After I select Microsoft form 2.0 Object Library(FM20.dll), I can setup a multipage control into a VB form, The PROLEM is I cann't REACH page 2 by Clicking on the tag of page2. While, In comparison, I Opened VB editor for Excel and attached a multipage control into a userform, the page 2 can be reached. The fm20.dll files for my VB6 and VBA are same in size and date. Since this is my first time to use multipage control, I don't know if that difference is normal. How can I reach page 2 (and 3, 4.) to add controls at design time? really frustrated, since I cann't find a sample around.

    Thanks for help!

    Sam


  4. #4
    Join Date
    Oct 1999
    Location
    Romania, Mures, Tg. Mures
    Posts
    12

    Re: One form, multi-top-tags, multi-faces display

    Hi,
    You have to RightClick on the Tab.
    Then click Edit. This will give you the option to change the Tab.
    Unfortunately is not ver usefull, because it does not realy changes the tabs, but only the title.
    What you have to do, is to make your own 2 frames (for 2 tabs), add and design all your controls on those frames, place the frames one over the other, and both over the tabcontrol.
    Then in the "Change" event of the tab, see which is the active tab, and show the required frame.
    Quite hard, especialy if you have lots of tabs.
    Instead, you could use the "Microsoft Tabbed dialog control(SP3)", which has a better TAB control.

    Good luck,
    Corneliu.


    Corneliu I. Tusnea
    Infopulse Romania

  5. #5
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: One form, multi-top-tags, multi-faces display

    2 main controls for this
    1. Tabstrip control from the COmmon Controls set. it requires some writing to get it working. and also the design time behaviour is not same as runtime, However it may look like other windows apps, if you care!
    2. Other is Sheradian tab called SSTab i thing.
    This one is nice and its design time is same as runtime.
    Check them out

    RK

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

Featured