repost: Form in a container or idea 
Author Message
 repost: Form in a container or idea

How can i add an form in an container.

Dim f as New Form
TabPage1.Controls.Add(f)
f.Visible = True
does not work because you can't add a toplevel control.

What i want to do is to simulate the VS7 style of the tabbed forms.
Any ideas?

wolfgang



Thu, 29 May 2003 19:41:51 GMT  
 repost: Form in a container or idea
sorry for the delay (from the other thread)... the trick is:

Dim f as New Form
f.TopLevel = false
TabPage1.Controls.Add(f)
f.Visible = true

However, you'll still have a caption bar, etc, so you'll need to rip those
off...


Quote:
> How can i add an form in an container.

> Dim f as New Form
> TabPage1.Controls.Add(f)
> f.Visible = True
> does not work because you can't add a toplevel control.

> What i want to do is to simulate the VS7 style of the tabbed forms.
> Any ideas?

> wolfgang



Fri, 30 May 2003 04:18:20 GMT  
 repost: Form in a container or idea
Hurra it works. tks a lot
wolfgang

Quote:
> sorry for the delay (from the other thread)... the trick is:

> Dim f as New Form
> f.TopLevel = false
> TabPage1.Controls.Add(f)
> f.Visible = true

> However, you'll still have a caption bar, etc, so you'll need to rip those
> off...



> > How can i add an form in an container.

> > Dim f as New Form
> > TabPage1.Controls.Add(f)
> > f.Visible = True
> > does not work because you can't add a toplevel control.

> > What i want to do is to simulate the VS7 style of the tabbed forms.
> > Any ideas?

> > wolfgang



Sat, 31 May 2003 00:17:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. REPOST: Is there a transparent container control?

2. REPOST: Is there a transparent container control?

3. REPOST: Is there a transparent container control?

4. Custom Control: Container inside container...

5. Moving Controls from Container to Container

6. Custom Control: Container inside container...

7. Repost - Custom Appointment Form Displays as Meeting Request in OWA

8. Repost: Stop up\down cursor keys moving between (text) form fields in a protected document

9. Repost: Datagrid refresh brings form to front

10. Repost: Form Design

11. Repost: Form BorderStyle 0 and Icon

12. repost: call objects on form events

 

 
Powered by phpBB® Forum Software