Z
Zeev Bunich via .NET 247
I have 2 forms Form1 and Form2
Form1 is the owner of Form2 and should activate it on Button1_Click
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Create another form and display it
Dim newForm As New Form2
newForm.Show()
newForm.Owner = Me
' Hide the owner
Me.Hide()
End Sub
in the Form2 we have:
Private Sub Form2_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Me.Owner.Show()
End Sub
Evrerything works fine but Form2 doesn't appear in the taskbar
and if it's minimized there is no way to get to it but with ALT+TAB or TASK Manager
Is there some workaround for this , except for removing the maximize minimize box?
I know it's a newbie question,Any help would be appreciated
Thanks
Form1 is the owner of Form2 and should activate it on Button1_Click
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Create another form and display it
Dim newForm As New Form2
newForm.Show()
newForm.Owner = Me
' Hide the owner
Me.Hide()
End Sub
in the Form2 we have:
Private Sub Form2_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Me.Owner.Show()
End Sub
Evrerything works fine but Form2 doesn't appear in the taskbar
and if it's minimized there is no way to get to it but with ALT+TAB or TASK Manager
Is there some workaround for this , except for removing the maximize minimize box?
I know it's a newbie question,Any help would be appreciated
Thanks