PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
(2.0) running an app in either Interactive or Non-Interactive mode
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
(2.0) running an app in either Interactive or Non-Interactive mode
![]() |
(2.0) running an app in either Interactive or Non-Interactive mode |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
hi,
i have a win-forms app that has a few forms in it. They obviously appear on screen when the app is launched. however, i want the program to run as a scheduled task when there is no user logged on. i checked out Environment.UserInteractive and it gives me what i need to know, but how should i launch the app? i currently use Application.Run(new MainForm()) i can obviously separate out the logic from the user-interface, and do something like: if(Environment.UserInteractive) Application.Run(new MainForm()) else { Application.Run(); new ScheduledTask().Start(); // etc etc } i'm just wondering if somebody else has any better suggestions? thanks tim |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

