Click here to Skip to main content
15,891,902 members
Home / Discussions / C#
   

C#

 
GeneralRe: Really hard question #1 Pin
James T. Johnson14-May-03 17:07
James T. Johnson14-May-03 17:07 
GeneralRe: Really hard question #1 Pin
eggie514-May-03 17:46
eggie514-May-03 17:46 
GeneralRe: Really hard question #1 Pin
jeff_martin14-May-03 5:48
jeff_martin14-May-03 5:48 
Generalquestion on format color for DataGrid Pin
cruscal13-May-03 18:14
cruscal13-May-03 18:14 
QuestionResizable control? Pin
Wmzong13-May-03 16:41
Wmzong13-May-03 16:41 
GeneralDataGrid... Row Selection & Column Header Alignment Pin
jmt9n13-May-03 13:28
jmt9n13-May-03 13:28 
Generaliconic child window Pin
Anonymous13-May-03 12:44
Anonymous13-May-03 12:44 
GeneralWindows Form Dialog when Logged Out Pin
Ingram Leedy13-May-03 10:53
Ingram Leedy13-May-03 10:53 
I have a windows application in C#, that has a form dialog, but doesnt require any user interaction. The form has a timer that closes itself.

MyForm form = new MyForm();<br />
dr = form.ShowDialog();<br />
form.Dispose();


I assigned a new task to run the application in the Task Scheduler. It runs when I am logged in.

However, when I am logged out, the scheduled application runs up to the point of showing the dialog, but throws an exception:

DialogSystem.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service

Of course, Notepad set up the same way runs fine.

Can someone please point me in the right direction, either where to find the
result or what's happening?

Thanks for any and all help.


Ingram Leedy

You can't depend on your eyes when your imagination is out of focus.
--Mark Twain

GeneralRe: Windows Form Dialog when Logged Out Pin
IrvTheSwirv14-May-03 2:01
sussIrvTheSwirv14-May-03 2:01 
GeneralRe: Windows Form Dialog when Logged Out Pin
Ingram Leedy14-May-03 10:56
Ingram Leedy14-May-03 10:56 
GeneralWindows Forms Pin
pahlsson13-May-03 10:11
pahlsson13-May-03 10:11 
GeneralRe: Windows Forms Pin
David Stone13-May-03 10:38
sitebuilderDavid Stone13-May-03 10:38 
GeneralRe: Windows Forms Pin
pahlsson13-May-03 22:39
pahlsson13-May-03 22:39 
QuestionHow to get screen area Pin
J. Dunlap13-May-03 9:24
J. Dunlap13-May-03 9:24 
AnswerRe: How to get screen area Pin
leppie13-May-03 11:49
leppie13-May-03 11:49 
GeneralRe: How to get screen area Pin
J. Dunlap13-May-03 18:17
J. Dunlap13-May-03 18:17 
QuestionFind the namespace an object is from? Pin
FruitBatInShades13-May-03 8:43
FruitBatInShades13-May-03 8:43 
AnswerRe: Find the namespace an object is from? Pin
leppie13-May-03 9:05
leppie13-May-03 9:05 
GeneralRe: Find the namespace an object is from? Pin
FruitBatInShades13-May-03 9:28
FruitBatInShades13-May-03 9:28 
GeneralControls created in one thread cannot parent in other thread - delegate. Pin
Mrso13-May-03 5:37
Mrso13-May-03 5:37 
GeneralRe: Controls created in one thread cannot parent in other thread - delegate. Pin
leppie13-May-03 9:07
leppie13-May-03 9:07 
GeneralRe: Controls created in one thread cannot parent in other thread - delegate. Pin
Mrso14-May-03 4:19
Mrso14-May-03 4:19 
GeneralRe: Controls created in one thread cannot parent in other thread - delegate. Pin
Richard Deeming14-May-03 5:35
mveRichard Deeming14-May-03 5:35 
Generaladding form to a panel Pin
zuhx13-May-03 5:30
zuhx13-May-03 5:30 
General[Announce] diagnosing interop marshaling Pin
Stephane Rodriguez.13-May-03 5:15
Stephane Rodriguez.13-May-03 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.