VB.NET Technology

VB.Net Projects

VB.Net Project 1

NotifyIcon Control
Previous Home Next
adplus-dvertising

Display an icon on notification area with corresponding to the application is running. Like shown in below example.

Properties of NotifyIcon

Events of Notify Icon

Code for mouse double click event on NotifyIcon

Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, 
	ByVal e As System.Windows.Forms.MouseEventArgs)
	 Handles NotifyIcon1.MouseDoubleClick
        If Me.WindowState = FormWindowState.Minimized Then
            Me.Show()
            Me.WindowState = FormWindowState.Normal
        End If
        ' Activate the form.
        Me.Activate()
        Me.Focus()
    End Sub

On double-clicking Icon to tab control application you get your application as on desktop.

Previous Home Next