C
Connectcase
Hi there,
and greetings from the Netherlands.
Trying to switch over from VB to VB.NET and struggling with something
that seemed very simple:
============================
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form2.Show()
Me.Close()
End Sub
End Class
=============================
Looks rather simple: by clicking on button1, I want Form2 to show and
Form1 to close. However, nothing happened, just a quick flash and the
app exited. Someone told me to use ShowDialog instead of Show. This
worked, but now Me.Close() does not work. How the **** do I close
Form1??
Any help appreciated (this is driving me nuts!)
Thanks
Cees
and greetings from the Netherlands.
Trying to switch over from VB to VB.NET and struggling with something
that seemed very simple:
============================
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form2.Show()
Me.Close()
End Sub
End Class
=============================
Looks rather simple: by clicking on button1, I want Form2 to show and
Form1 to close. However, nothing happened, just a quick flash and the
app exited. Someone told me to use ShowDialog instead of Show. This
worked, but now Me.Close() does not work. How the **** do I close
Form1??
Any help appreciated (this is driving me nuts!)
Thanks
Cees