borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (vb.net forum related question ?)Next Topic (Export Crystal reports) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : how to close MDIchild
Poster Message
patriciam
Level: Guest


icon how to close MDIchild

Hi!
I have a container,in this container i have a button,when i click in the button a new form is open(mdichild).What i have to do to every time i click the button,when a new form is open the other is closed?


The code:
sub button_click()
If (tipo = 1) Then
  Dim tipoTexto As New Texto()
tipoTexto.MdiParent = Me
tipoTexto.Show()
end if

If (tipo = 2) Then
  Dim tipoImagem As New Imagem()
tipoImagem.MdiParent = Me
tipoImagem.Show()
end if

end sub

When the form "tipoImagem" open i want that the form "TipoTexto" is closed.

17-12-2003 at 10:25 AM
| Quote Reply
BRMC
Level: VB Lord


Registered: 28-11-2003
Posts: 210
icon Re: how to close MDIchild

Hi,
try with:

unload ()

Bye
BRMC

____________________________
I don't mind not going to heaven
As long as they've got cigarettes
in hell

17-12-2003 at 12:03 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : how to close MDIchild
Previous Topic (vb.net forum related question ?)Next Topic (Export Crystal reports) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder