Run VB.net program minimized

user3292210

http://i.stack.imgur.com/3jq0F.png

As shown in the picture, I want my vb.net application to run minimized like that a show a pop-up when the minimize button is hit. Is there a way I can do that?

chris_techno25

Try this...

You can use the notifyicon control...Hide the form when it's minimized and show the notifyicon, otherwise, show the form and hide the notifyicon control...

Add notifyicon control

Add this code under the form resize event

 If Me.WindowState = FormWindowState.Minimized Then
     Me.WindowState = FormWindowState.Minimized
     NotifyIcon1.Visible = True
     NotifyIcon1.ShowBalloonTip(5, "System", "DoubleClick on the Icon to restore the application.", ToolTipIcon.Info)
     Me.Hide()
 End If

Under the doubleclick event of notifyicon control, add this code...

 Me.Show()
 Me.WindowState = FormWindowState.Maximized
 NotifyIcon1.Visible = False

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

VB.Net program minimized not working

From Dev

Run Program as Administrator in vb.net

From Dev

How can I run a program on startup, minimized?

From Dev

How can I run a program on startup, minimized?

From Dev

How to run psexec minimized from a VB script (VBS)

From Dev

Simulate click on a minimized program

From Dev

VB .NET | Interaction with another program

From Dev

How can I get a program to run automatically at specific times a day (VB.NET)

From Dev

How to run a 32-bit vb.net program in a 64-bit Windows 7?

From Dev

VB program to change text in a script file then run

From Dev

VB program does not run on older XP machine

From Dev

Registry command to open program minimized

From Dev

Vb.net windows 8 styled program

From Dev

Find where a program aborts (VB.net)

From Dev

Sending Email vb.Net Stoping program

From Dev

Translation program from VBA to vb NET

From Dev

How to Update a Program in VB.net

From Dev

Vb.net Run Script inside Textbox

From Dev

VB .NET run a thread at specified time everyday

From Dev

Hotkeys in a minimized Tkinter-based program

From Dev

How to actually start program minimized in Windows 10?

From Dev

Standalone X program to list open/minimized windows

From Dev

Start program minimized from task scheduler not working

From Dev

kubuntu 13.04 - run applications minimized at startup

From Dev

Run function even when app minimized

From Dev

Process size continuously increasing by a program in VB.net

From Dev

How to change username color in chat program (VB.NET)?

From Dev

Unfreeze the program while loading big data - vb.net

From Dev

Making an installer for a VS 2013 Express VB.Net program

Related Related

HotTag

Archive