|
KeyEventHandler[^]
Event Handler[^]
Hopefully these should help you.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
He members,
I have a window service and a separate UI application. I want to display a popup message (popup control is placed inside the UI application) after every 10 min or after meeting some xyz condition I want to display that popup message on user desktop. This whole functionality is working nicely in window XP but in Window 7 this message got displayed on the service desktop instead of the window desktop.
Window Desktop: Normal desktop of window 7
Service Desktop: a blank desktop containing a system popup with “Go Back“ button.
Can somebody please provide any suggestions on it.
Regards
|
|
|
|
|
Window services does not allow any user interaction
|
|
|
|
|
Do we have any alternate by which wo can achieve it ?
|
|
|
|
|
Don't use a service would be the alternative; does the "logic" in there have to run without user-supervision and/or before login? If no, convert it to a console-app. If yes, launch the UI-app using normal user-credentials, and have it communicate with the service (over TCP/IP e.g.)
|
|
|
|
|
Hi Eddy,
Some times our o/s also displays the notifyicon to upgrade java version. That thing is also performed though window service. Even i want to perform the similar task through my window service.
Can you please suggest.
Regards
|
|
|
|
|
PankajKSood wrote: Some times our o/s also displays the notifyicon to upgrade java version. That thing is also performed though window service. Even i want to perform the similar task through my window service.
I already did; and no, someone misusing the system doesn't make it a good idea to copy. Services run without user-supervision, and should not display anything. Whom are you going to display to on the logon-desktop?
Your app would run happily as a user-mode application on startup.
|
|
|
|
|
Eddy,
Yes its not a good idea to copy but still i am ordered to do so..
Regards
|
|
|
|
|
Then re-read what I wrote on communicating over TCP/IP. And yes, I'm kinda used to people being ordered and blindly following.
Aw, there's Godwin again
--edit;
Let me rephrase; is the person who proposed this idea and "ordered it" also going to take full responsibility if there's a virus on the network?
|
|
|
|
|
PankajKSood wrote: That thing is also performed though window service.
No, it's not. It's a normal application that is launched from the Run key that does this check, not a service. It's started every time someone logs into the machine.
|
|
|
|
|
1. right click the service in services.
2. Choose "properties"
3. Select the tab "Log On"
4. click the radio button on top saying "Local System account"
5. Tick the checkbox "Allow service to interact with desktop"
I would strongly recommend AGAINST doing this.
hope this helps.
|
|
|
|
|
V.
I have already tried that approach but that fails too.
Regards
|
|
|
|
|
It's not going to work at all.
Starting with Vista, services are no longer allowed to interact with the users desktop. This is expecially true as there is sometimes nobody logged in at the console so there's no desktop to interact with.
You cannot do what you want from a service application. This MUST be done as a normal user app that is usually launched from the Run key in the registry. This application then communicates with the service over some transport, like named pipes, TCP/IP, Shared Memory, or what ever you want. It's the job of this application to provide the user interface for the service, send commands to the service and show any data the service needs displayed.
|
|
|
|
|
Hi Guys
I have question a regarding application Development using MVC 3, What are the best tricks and best practices for MVC 3, I am bigger in this technology, what will help me to speed up learning and achieving the functionality .
I want to know that how events ,states are handled using MVC 3,
Thanks
Vishwa
|
|
|
|
|
When I was first learning MVC3, I found the pluralsight videos and tutorials over at http://www.asp.net/mvc/[^] where of great help.
I actually learnt MVC3 while developing a KPI Management solution for my degree, and it was a great help.
Cheers,
|
|
|
|
|
Thank you Dave,
I am also learning fro the same site, and i reading books also,
i am asking for the better approach or good practice for application development.
As per my knowledge there is no default event handling in MVC 3 so is there any different approach ?
|
|
|
|
|
|
I also have this book, i am reading from 2 days, may be i have to go through more to clear my doubts.
Thanks buddy
|
|
|
|
|
I am opening an image through my c# windows application. After that i need to show the form in the screen.How can i do this? any Help regarding this ll be useful.
|
|
|
|
|
I've read some materials about SerialPort in VS2010, and they refer to the stream and the input buffer of the SerialPort object! and i wonder what they are ?
In addition, I'd like to change between reading data in binary or text form when reading from serial buffer.How can I do this ?
Hope to get your help ! ^ ~ ^ !
|
|
|
|
|
See the SerialPort class[^] for full details. As to reading text or binary, there is no real difference. Serial ports transmit data as a stream of bytes, it is up to the sender and receiver to agree what that data represents.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
thanks Richard MacCutchan ! but what about stream and internal buffer ?
and what you mean:"One of these days I'm going to think of a really clever signature" ?
|
|
|
|
|
nqchanh wrote: what about stream and internal buffer ? What about them? You need to explain what your problem is; if you just want general information then go to the MSDN page in the link I gave you and read about the class and its methods and properties.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Help,How to Convert the Array,Collection,DataTable Or DataSet to Xml File?
How to Convert the JSON To Xml Or Xml To JSON?
Thank you
|
|
|
|
|