How i Can open my c# form only automatically to user when user open windows.
-
Hi , How i Can open my c# form only automatically to user when user open windows.
You will probably need to add it to the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run. But you may find that your users have their own ideas as to whether they want this to happen or not.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
Hi , How i Can open my c# form only automatically to user when user open windows.
You can add an entry in the registry, either the Run or RunOnce keys http://msdn.microsoft.com/en-us/library/aa376977(v=vs.85).aspx[^]
No comment
-
Hi , How i Can open my c# form only automatically to user when user open windows.
Even simpler is adding a link in the startup folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup).
-
Hi , How i Can open my c# form only automatically to user when user open windows.
How i can do this by coding automatically when program setup
-
Hi , How i Can open my c# form only automatically to user when user open windows.
I agree with others with either using the Registry and StartUp folder. However, there is also one more alternative if not more to consider. Why not try creating a Service? Here is an article to get you started. MSDN: Walkthrough: Creating a Windows Service Application Once that is done you can go to the Component Services and set the application to start once the computer has turned on. There is also very cool recovery options. (dcomcnfg) Hope this helps! :)
-
I agree with others with either using the Registry and StartUp folder. However, there is also one more alternative if not more to consider. Why not try creating a Service? Here is an article to get you started. MSDN: Walkthrough: Creating a Windows Service Application Once that is done you can go to the Component Services and set the application to start once the computer has turned on. There is also very cool recovery options. (dcomcnfg) Hope this helps! :)
Services shouldn't be interacting with the desktop, so not a great idea for a "form" app :)
Mark Salsbery :java:
-
Services shouldn't be interacting with the desktop, so not a great idea for a "form" app :)
Mark Salsbery :java:
Depends Mark upon what the developer is trying to achieve. Hence, the reason why I chose the suggestion icon. Just another option to consider that's all I was trying to get at. I don't know the specifics of what the developer is hoping to accomplish with the "form" app. Thanks for the feedback. :)
-
Hi , How i Can open my c# form only automatically to user when user open windows.
The answers here have assumed that you want your application to open automatically when Windows is started. I am wondering if what you are really asking is: how do you open your application when a file with the unique extension you are using for files you save is double-clicked ? Please clarify your question. thanks, Bill
"... Sturgeon's revelation. It came to him that Science Fiction is indeed ninety-percent crud, but that also—Eureka!—ninety-percent of everything is crud. All things—cars, books, cheeses, hairstyles, people and pins are, to the expert and discerning eye, crud, except for the acceptable tithe which we each happen to like." early 1950's quote from Venture Sci-Fi Magazine on the origin of Sturgeon's Law, by author Theodore Sturgeon: source Oxford English Dictionary on-line "Word-of-the-Day."
-
Depends Mark upon what the developer is trying to achieve. Hence, the reason why I chose the suggestion icon. Just another option to consider that's all I was trying to get at. I don't know the specifics of what the developer is hoping to accomplish with the "form" app. Thanks for the feedback. :)
Under Windows 7, a service cannot display a Form for security reasons. Well, it could, but at best, it'll show up on a seperate Desktop and the user would be informed that a service is showing something that might need the users attention. If OK'd, it would switch Desktops. This is not something I would use in a production app at all.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Even simpler is adding a link in the startup folder (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup).
no your screwed, close your computer, take out the hard drive open your hard-drive and throw away the cover( this is what makes computers lag!!) then take out the RAM and place a hot dog in there. Pour water into the cooling fans, turn it on and BAM!!! faster computer along with the use of the program in all users YOUR WELCOME!!!!
-
How i can do this by coding automatically when program setup
Add a link in the startup folder, you'll find that in the category "file system" in the setup project.