473,466 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to sendmessage to systray in dotnet???

Hi,

My app uses NotifyIcon and i want it has the only instance. So when it
second executes, it need to invoke the previous process( in the systray).
How do i send message to the previous process ??? I want to send a double
click message to ContextMenu in the previous process form. I try to use
SendMessage API but i can't get the menuitem's id.

How to avoid it?

Thanks in advance,
Elvis.

Dec 9 '05 #1
0 922

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

Similar topics

3
by: Jon Bosker | last post by:
I have written an application that lives in the systray but when I try to close windows or logout it does not close my application and therefore prevents windows from shutting down or logging me...
2
by: active | last post by:
This is what need to do Win32.User.SendMessage(Win32.User.HWND_BROADCAST, Win32.User.WM_WININICHANGE, 0, "windows") Tried both of these in Win32.User. (one at a time) public static extern...
3
by: parth_mca | last post by:
i hv an application (socket programming) and i want when the client application receives a message it should popup from the systray.. so i want to run my application in systray..can ne 1 help me?
2
by: shachar | last post by:
hi all. i have a small application that i want it to appear in the systray when it's minimized. any simple example for me?
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
3
by: Lee Weiner | last post by:
I'm a VB6 guy playing around with VB.NET. Trying to convert one of my old VB6 projects, a plain old text editor. A problem I'm having is using the SendMessage API function to retrieve the line in...
18
by: Lars Netzel | last post by:
Hello! Thanx to this newgroup I have finally, with the help of you guys, gotten this to work halfway.. but the final action is still not working, clicking the "Button2" thru SendMessage(). ...
3
by: Mark Ingalls | last post by:
Hello Everyone, I'm trying to send a text string to a dialog edit control using SendMessage and WM_SETTEXT and cannot get it working correctly. Here is the declaration of the function: ...
15
by: Necromis | last post by:
Ok, I am really losing it. I cannot seem to wrap my head around the SendMessage function/method. What I am trying to do is send text/data to an instance of a window that I know the handle of from...
0
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,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.