PDA

Click to See Complete Forum and Search --> : How show a form over other forms and be able to select them by tabs?


Cris
Aug 1st, 2001, 08:35 AM
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

kedaman
Aug 1st, 2001, 01:38 PM
Say Form2 should be owned by Form1, load it using show method like this:

Form2.Show VBRUN.FormShowConstants.vbModeless, Form1

Cris
Aug 16th, 2001, 04:57 AM
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