Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reusing a completed form on a tab

Status
Not open for further replies.

GaryWilsonCPA

Technical User
Jul 19, 2000
253
US
I was wondering if there is a way to use a completed and working form within a TAB on the MULTITAB.

I could rebuild the form inside the multitab, but is there a way to just copy all my work within the tab. I tried copy paste, but got a unrecognisable mess.
 
I would first just convert the Form to a UserControl. You should be able to Copy and Paste, with making a few code corrections. The, add the UserControl to a tab page.
 
or you could try this piece of code

Code:
dim tempform1 as new form1
tempform1.toplevel = false
me.tabpage1.controls.add(tempform1)
tempform1.show

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top