ethicalhacker
Well-known member
how can i minimize my application to the taskbar tray on minimizing the application
Public Class Form1
Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LocationChanged
Me.Hide()
End Sub
Private Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.Click
Me.Show()
End Sub
End Class
Public Class Form1
Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LocationChanged
If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
End If
End Sub
Private Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.Click
Me.WindowState = FormWindowState.Maximized
Me.Show()
Me.Focus()
End Sub
End Class
So you use the Activate method.Focus is a low-level method intended primarily for custom control authors. Instead, application programmers should use the Select method or the ActiveControl property for child controls, or the Activate method for forms.
Intellisense works fine here for this, I don't know why yours doesn't.But how is it doesnt show up ion the list when i typ me.