D
Darren Mar-Elia
I have an app I'm writing in .net 2.0. Basically all I want visible in the
app is a system tray icon, that then launches a Windows form for
configuration. I want to trap Window messages and, when I see a particular
message, do some work. It works fine if a Windows form is up and visible but
I don't want any visible forms on the screen, yet I still want to capture
the messages. Is there a best practice on doing this? Right now I'm
basically overriding WndProc in my form code. I tried starting the app with
the form not visible but that doesn't appear to work. Not sure why.So, I
guess the question is, what is the best way to wait for window messages
without having a visible form?
--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
Speed Group Policy Troubleshooting with the NEW GPHealth Reporter tool at
http://www.sdmsoftware.com/products.php
app is a system tray icon, that then launches a Windows form for
configuration. I want to trap Window messages and, when I see a particular
message, do some work. It works fine if a Windows form is up and visible but
I don't want any visible forms on the screen, yet I still want to capture
the messages. Is there a best practice on doing this? Right now I'm
basically overriding WndProc in my form code. I tried starting the app with
the form not visible but that doesn't appear to work. Not sure why.So, I
guess the question is, what is the best way to wait for window messages
without having a visible form?
--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
Speed Group Policy Troubleshooting with the NEW GPHealth Reporter tool at
http://www.sdmsoftware.com/products.php