Results 1 to 3 of 3

Thread: How show a form over other forms and be able to select them by tabs?

  1. #1
    Cris
    Guest

    How show a form over other forms and be able to select them by tabs?

    Hi, I want to show various overlaped forms, that is, a form over other forms. And I need be able to select one of them by a tab each time as it occurs in many text editors like UltraEdit. How can I do it? Can you show me the proper code?

    Regards

    Cris

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Say Form2 should be owned by Form1, load it using show method like this:

    Form2.Show VBRUN.FormShowConstants.vbModeless, Form1
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Cris
    Guest

    Sorry, I don't understand your method

    Hi kedaman,

    Sorry, I don't understand your method. In fact, I have proved it and it seems that not work as I wanted, you know, to be able to select a form among other forms by a tab as it occurs in many text editors or Option pages or a TabStrip control or a Multipage control. Anyway, I tried to design a window that contain a Multipage control and then load a form on the Multipage' page in run time. My idea is that each Multipage's page contains a form.
    That is,

    In order to add a new tab or page it would be:

    Dim Newpage as page
    Set Newpage = Multipage1.pages.Add(...)

    If I create a form as model for others forms, it could be:

    Dim NewForm as From1

    Then, I think, can create an instance of the form doing:

    Set NewForm = Newpage.controls.Add(...)

    But, it not works, specially as it is necessary a identifier variable of object type (Look at the MSDN help: Add (method))

    Have you an idea about this? What can I do?

    Thanks a lot and sorry for being so long

    Cris

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