473,657 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send to Tray..

VJ
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I want
to send it to tray on startup.. I tried the following it did not work.. I
still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because
that causes other problems for me..

VJ
Nov 16 '05 #1
5 4370
VJ:

Have you added a NotifyIcon? Once you do that you can set it to visible
(the notifyIcon) or visible = false
"VJ" <vi********@yah oo.com> wrote in message
news:OM******** ******@TK2MSFTN GP10.phx.gbl...
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I want to send it to tray on startup.. I tried the following it did not work.. I
still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because
that causes other problems for me..

VJ

Nov 16 '05 #2
Check out this article. I think it will give you the information you
are looking for.

http://www.codeproject.com/csharp/trayiconmenu01.asp
"VJ" <vi********@yah oo.com> wrote in message news:<OM******* *******@TK2MSFT NGP10.phx.gbl>. ..
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I want
to send it to tray on startup.. I tried the following it did not work.. I
still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because
that causes other problems for me..

VJ

Nov 16 '05 #3
VJ
I think i was misunderstood.. I am able to get the Icon to show and all is
fine.. It is just my when the application starts, I want just a Icon to show
up in the status notification area.. So in trying the below code.. The icon
does show up, but I have a minimized view of the window still sitting on top
of my
taskbar. How do I get ride of this...???

VJ

"VJ" <vi********@yah oo.com> wrote in message
news:OM******** ******@TK2MSFTN GP10.phx.gbl...
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I want to send it to tray on startup.. I tried the following it did not work.. I
still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because
that causes other problems for me..

VJ


Nov 16 '05 #4
May be you need to hide you main application with Minimize detected.

"VJ" <vi********@yah oo.com> wrote in message
news:eP******** *****@TK2MSFTNG P11.phx.gbl...
I think i was misunderstood.. I am able to get the Icon to show and all is
fine.. It is just my when the application starts, I want just a Icon to show up in the status notification area.. So in trying the below code.. The icon does show up, but I have a minimized view of the window still sitting on top of my
taskbar. How do I get ride of this...???

VJ

"VJ" <vi********@yah oo.com> wrote in message
news:OM******** ******@TK2MSFTN GP10.phx.gbl...
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I

want
to send it to tray on startup.. I tried the following it did not work.. I still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in a
different event.. I can't use the Resize and the Activate events, because that causes other problems for me..

VJ


Nov 16 '05 #5
VJ
How do I hide my application? I tried to do this.hide() or this.visible =
false on Form_Load, both don't seem to help..

VJ

"kids_pro" <ki******@yahoo .com> wrote in message
news:e8******** ******@TK2MSFTN GP12.phx.gbl...
May be you need to hide you main application with Minimize detected.

"VJ" <vi********@yah oo.com> wrote in message
news:eP******** *****@TK2MSFTNG P11.phx.gbl...
I think i was misunderstood.. I am able to get the Icon to show and all is
fine.. It is just my when the application starts, I want just a Icon to show
up in the status notification area.. So in trying the below code.. The

icon
does show up, but I have a minimized view of the window still sitting on

top
of my
taskbar. How do I get ride of this...???

VJ

"VJ" <vi********@yah oo.com> wrote in message
news:OM******** ******@TK2MSFTN GP10.phx.gbl...
Is it possible to send a application as a Icon to the System Tray on
startup?.. I am sending it tray on few events inside my application, I

want
to send it to tray on startup.. I tried the following it did not work.. I still the minimized view above the task bar..

this.WindowStat e = FormWindowState .Minimized;
this.Hide();

I have this code in the form's Load event...Maybe I need to do this in
a different event.. I can't use the Resize and the Activate events,

because that causes other problems for me..

VJ



Nov 16 '05 #6

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

Similar topics

1
482
by: balu | last post by:
Hello , I Had a problem in developing a application for getting a message over or above system tray . When we first logon into the yahoo messenger , whenever a new user logon ,The messenger will shows message above the system tray. for example " balu comes is on online " above system tray . whenever a new user logout ,The messenger will shows message above the
2
4010
by: Sean Dudley | last post by:
Hi folks, I am trying to figure out how to enumerate the system tray icons and get their handles when explorer.exe is not running. So I need to be able to ask probably through API which icons would be in the system tray. Any ideas? I know this is a tough one. -Sean
4
7968
by: utkarsh | last post by:
Hi, I want to develop a Window Service in C# that should be capable of sisplaying the a icon in the window tray. Based on some logic in service, icon should be changed to some other color/image and I needed single click, double click event and context menu also on that tray icon to perform some other operation and show some window form.
4
1775
by: Robert Samuel White | last post by:
Hi there. Can anyone point me to some good references or examples on how to create an independent tray program that can send triggers to external applications all designed inside the same solution? Basically, I want a tray program with a context menu of options (they can be checked or unchecked options) that when an action is taken gets triggered to all the other open applications of the solution. I've already created the tray program,...
2
1280
by: Robert Kemp | last post by:
I am creating a non-visible/tray control that monitors other custom controls for changes (among other things). One of the monitored controls is a new textbox that adds functionality to the standard textbox, and includes a variable that points to the monitoring tray control... it works just like the imagelist that is attached to any control that supports imagelists, such as a treeview or listview. Everything is working the way I would like...
10
3124
by: Crouchie1998 | last post by:
Hello To All You Real Programmers Out There!! There is an application called: "Tray It" Webpage: ---------- http://www.teamcti.com/trayit/trayit.htm Direct Download:
8
4542
by: Avi G | last post by:
Hi, i've created an application and i want it to be minimized to the sys tray, how i do it? if you can direct me step by step even with create a small application and put it in the sys tray Thanks
3
7922
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
3
3310
by: Usman Jamil | last post by:
Hi I've a windows application that does a lengthy backup process. While the process is going on, I need to show a progress bar inside system tray or just above the system tray. Can someone please guide me how to show the progress bar out of the boundaries of the application form area and near the system tray. Regards Usman
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.