Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multiple query results on one form. Pin
Pete O'Hanlon30-Nov-10 22:23
mvePete O'Hanlon30-Nov-10 22:23 
GeneralRe: Multiple query results on one form. Pin
Joe Stansfield1-Dec-10 11:29
Joe Stansfield1-Dec-10 11:29 
Questionin microsoft report viewer i want change datasource in run time Pin
Nabawoka30-Nov-10 10:18
Nabawoka30-Nov-10 10:18 
AnswerRe: in microsoft report viewer i want change datasource in run time Pin
Pete O'Hanlon30-Nov-10 11:32
mvePete O'Hanlon30-Nov-10 11:32 
GeneralRe: in microsoft report viewer i want change datasource in run time Pin
Nabawoka30-Nov-10 19:24
Nabawoka30-Nov-10 19:24 
AnswerI Get it :D:D ;) Pin
Nabawoka30-Nov-10 22:12
Nabawoka30-Nov-10 22:12 
GeneralRe: I Get it :D:D ;) Pin
Pete O'Hanlon30-Nov-10 22:24
mvePete O'Hanlon30-Nov-10 22:24 
Questionerror while backup DB from C# "Backup failed for Server" [modified] Pin
Nabawoka30-Nov-10 9:53
Nabawoka30-Nov-10 9:53 
AnswerRe: error while backup DB from C# "Backup failed for Server" Pin
Henry Minute30-Nov-10 13:36
Henry Minute30-Nov-10 13:36 
QuestionHow to block shutdown/logoff in Windows Vista? Pin
turbosupramk330-Nov-10 9:43
turbosupramk330-Nov-10 9:43 
AnswerRe: How to block shutdown/logoff in Windows Vista? Pin
Pete O'Hanlon30-Nov-10 10:10
mvePete O'Hanlon30-Nov-10 10:10 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
turbosupramk330-Nov-10 10:22
turbosupramk330-Nov-10 10:22 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
Pete O'Hanlon30-Nov-10 11:08
mvePete O'Hanlon30-Nov-10 11:08 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
turbosupramk330-Nov-10 11:18
turbosupramk330-Nov-10 11:18 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
Pete O'Hanlon30-Nov-10 11:21
mvePete O'Hanlon30-Nov-10 11:21 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
turbosupramk31-Dec-10 3:07
turbosupramk31-Dec-10 3:07 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
Pete O'Hanlon1-Dec-10 3:30
mvePete O'Hanlon1-Dec-10 3:30 
GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
turbosupramk32-Dec-10 9:44
turbosupramk32-Dec-10 9:44 
Thanks!


This worked last night, I'll continue to test it throughout the week. I wrapped it in a c# application that blocks logging off without verification first. The same can be done for XP, but the first command is a bit different, it is " tscon 0 /dest:console " instead.

I through the wait commands in, because a few times that I was testing it would release the session before the lock command could run and then it would not lock the machine, so an unlocked desktop was left sitting at the office, not something I wanted to happen. Thanks for the help and encouragement Pete.

tscon.exe RDP-Tcp#0 /dest:console

wait 1

rundll32.exe user32.dll, LockWorkStation

wait 1

exit 

GeneralRe: How to block shutdown/logoff in Windows Vista? Pin
Pete O'Hanlon3-Dec-10 11:11
mvePete O'Hanlon3-Dec-10 11:11 
QuestionRebooting to safe mode... Pin
Jacob D Dixon30-Nov-10 7:08
Jacob D Dixon30-Nov-10 7:08 
AnswerRe: Rebooting to safe mode... Pin
Henry Minute30-Nov-10 7:52
Henry Minute30-Nov-10 7:52 
GeneralRe: Rebooting to safe mode... Pin
Jacob D Dixon30-Nov-10 8:20
Jacob D Dixon30-Nov-10 8:20 
GeneralRe: Rebooting to safe mode... Pin
Henry Minute30-Nov-10 9:26
Henry Minute30-Nov-10 9:26 
GeneralRe: Rebooting to safe mode... Pin
Jacob D Dixon1-Dec-10 3:44
Jacob D Dixon1-Dec-10 3:44 
GeneralRe: Rebooting to safe mode... Pin
Rose WiFiTech & Electronics Library Research Cen26-Oct-11 5:36
Rose WiFiTech & Electronics Library Research Cen26-Oct-11 5:36 

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.