none
Program Wont Become Visible RRS feed

  • Question

  • if i set the "window State" to "normal" then my;

        Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
            If Me.Visible = True Then
                Me.Visible = False
            ElseIf Me.Visible = False Then
                Me.Visible = True
            End If

        End Sub

    works fine, however, if i set the "window State" to "Minimized" then clicking the notify icon no longer makes the app visible? :s
    Monday, August 10, 2009 9:46 AM

Answers

  • update your code like this..
      
    If Me.Visible = True Then
                Me.Visible = False
            ElseIf Me.Visible = False Then
                Me.Visible = True
                Me.WindowState = FormWindowState.Normal ;
            End If

    :: Learning .NET ::
    • Marked as answer by Fibrewire Monday, August 10, 2009 10:15 AM
    Monday, August 10, 2009 9:54 AM