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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Forms

Status
Not open for further replies.

MartinCroft

Programmer
Jun 12, 2003
151
GB
Hi

I have two forms, formA & FormB

if i call form B from a button on formA
with the following code

Dim frmNew As New FormB
frmNew.Show()

formB opens up successfully,both forms are accessible I added a button on formB withthe following

me.hide

exspecting it to close formB however it closes everything down. tried formB.activeform.hide still the same

how do i close B without closing the application

cheers

 
#1
You could replace : frmNew.Show()
with frmNew.ShowDialog()

With this you won't have access to formA untill frmNew is closed.(same thing happens when you call the messagebox.show; if you dont hit any button, the parent form will remain non-accessible)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top