473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Start Application with Hidden Form

Hi All,

How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...

(Like MSN Messenger)

Thx for your help !

Eddie
Nov 20 '05 #1
3 3842
I *believe* msn messanger is a service with a UI. =)
"Eddie" <ma*************@videotron.ca> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
Hi All,

How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...

(Like MSN Messenger)

Thx for your help !

Eddie

Nov 20 '05 #2
* "Eddie" <ma*************@videotron.ca> scripsit:
How may I start my Application with no visible Form. I just want to add A
NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will
show the Form...


\\\
Public Class AppMain
Public Shared Sub Main()

' Add icon here.
Application.Run()
End Sub
End Class
///

Don't forget to set the project's startup object to 'Sub Main' in the
project properties.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
Works Perfectly !!

Thank you...
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
* "Eddie" <ma*************@videotron.ca> scripsit:
How may I start my Application with no visible Form. I just want to add A NotifyIcon in the systray. When the user DoubleClick my NotifyIcon, I will show the Form...


\\\
Public Class AppMain
Public Shared Sub Main()

' Add icon here.
Application.Run()
End Sub
End Class
///

Don't forget to set the project's startup object to 'Sub Main' in the
project properties.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Oliver Neumann | last post by:
Hello, im new to c# and i got an app with a notifyicon. Now i want to start the app only with the notifyIcon, so that the Main-Form doesnt show up. The form itself is used at the entrance...
0
by: tim | last post by:
I have an vb application that is started/stopped using the System.Diagnostics.Process class. The application has both a form, and a notifyicon. (The form is displayed when the user clicks the...
5
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
4
by: Paul | last post by:
Hi, I am trying to start a process hidden. My code: wordprocess = new System.Diagnostics.Process(); ; wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd, args);...
1
by: ESmith | last post by:
I want to create a small console application that essentially gets some information and then launches a Windows Application. What I want to do is have the console application launched in hidden...
6
by: ahmad.humyn | last post by:
I have an application in which the main form goes something like: public frmMain() { frmA frm = new frmA(); frm.show(); this.hide(); } Now that the control has been passed to frmA, how do...
10
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
1
by: hermbagger | last post by:
I wrote a windows application in C# (using visual studio 2003) which I am running as an executable on a Windows Server 2003 machine. The application runs smoothly for days. Then out of nowhere,...
4
by: =?Utf-8?B?Z2luYWNyZXNzZQ==?= | last post by:
I am trying to close/dispose multiple instances of a form but because they are modal and hidden, they do not show up in My.Application.OpenForms. They must be modal, so making them modeless is not...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.