come da titolo, come si gestisce un form?
con un bottone voglio sia aprire una nuova form che chiudere quella attuale
come da titolo, come si gestisce un form?
con un bottone voglio sia aprire una nuova form che chiudere quella attuale
Tony
Una chiamata al metodo Close?![]()
MARCO BREVEGLIERI
Software and Web Developer, Teacher and Consultant
Home | Blog | Delphi Podcast | Twitch | Altro...
yesOriginariamente inviato da alka
Una chiamata al metodo Close?![]()
Tony
se è in VB6 (ma magari anche in altri linguaggi)...
potresti usare:
codice:Private sub ApriNuovo () 'Apre il nuovo form Form2.show 'Chiude il form attuale unload me end sub
Originariamente inviato da Folcus
se è in VB6 (ma magari anche in altri linguaggi)...
potresti usare:
codice:Private sub ApriNuovo () 'Apre il nuovo form Form2.show 'Chiude il form attuale unload me end sub![]()
Tony
Up ché? Ti ho risposto.Originariamente inviato da tony83
up![]()
MARCO BREVEGLIERI
Software and Web Developer, Teacher and Consultant
Home | Blog | Delphi Podcast | Twitch | Altro...
form1 clicco su un pulsante che chiama form2 e chiude form1
ma usando:
close non fa nulla..
me.close mi chiude tutto il progetto
Tony
Spero che tu stia invocando il metodo Close riferendoti alla finestra da chiudere, e non a quella visualizzata.
MARCO BREVEGLIERI
Software and Web Developer, Teacher and Consultant
Home | Blog | Delphi Podcast | Twitch | Altro...
NEL FORM1:
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click
Dim obj_form2 As New Form2()
obj_form2.Show()
End Sub
NEL FORM2:
Dim obj_form1 As New Form1()
obj_form1.Close()
non chiude assolutamente nulla...
Tony