Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Wav Files into System Memory ? Pin
JKenny7629-Dec-10 15:38
JKenny7629-Dec-10 15:38 
QuestionConverting from VBA to VB .NET Pin
cyrossis28-Dec-10 4:04
cyrossis28-Dec-10 4:04 
AnswerRe: Converting from VBA to VB .NET Pin
Dave Kreskowiak28-Dec-10 4:13
mveDave Kreskowiak28-Dec-10 4:13 
AnswerRe: Converting from VBA to VB .NET Pin
T21021-Jan-11 1:42
T21021-Jan-11 1:42 
QuestionHow to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang27-Dec-10 23:49
Yance Lawang27-Dec-10 23:49 
AnswerRe: How to make windows can't for shutdown/reboot/loggoff? PinPopular
Henry Minute28-Dec-10 2:30
Henry Minute28-Dec-10 2:30 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? [modified] Pin
Yance Lawang28-Dec-10 13:00
Yance Lawang28-Dec-10 13:00 
AnswerRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Chris C-B28-Dec-10 3:11
Chris C-B28-Dec-10 3:11 
I agree with what Henry said, and consider it poor practice which will arouse suspicion. The user can always hit the big red button and close down anyway.

The only acceptable approach, in my view, is to use the Form__FormClosing event to throw up a modal dialog box to ask the user if they really want to do this. This will hold the Shutdown/Restart/Log off process. I also check to see if there are any unsaved data, and if so, then modify the dialog box appropriately.
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? [modified] Pin
Yance Lawang28-Dec-10 13:20
Yance Lawang28-Dec-10 13:20 
AnswerRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Dave Kreskowiak28-Dec-10 4:11
mveDave Kreskowiak28-Dec-10 4:11 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang28-Dec-10 13:16
Yance Lawang28-Dec-10 13:16 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Dave Kreskowiak28-Dec-10 13:55
mveDave Kreskowiak28-Dec-10 13:55 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang28-Dec-10 15:06
Yance Lawang28-Dec-10 15:06 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Dave Kreskowiak28-Dec-10 16:05
mveDave Kreskowiak28-Dec-10 16:05 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? [modified] Pin
Yance Lawang28-Dec-10 17:58
Yance Lawang28-Dec-10 17:58 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Alan Burkhart28-Dec-10 21:05
Alan Burkhart28-Dec-10 21:05 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? [modified] Pin
Yance Lawang28-Dec-10 21:34
Yance Lawang28-Dec-10 21:34 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Chris C-B28-Dec-10 22:08
Chris C-B28-Dec-10 22:08 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang28-Dec-10 22:27
Yance Lawang28-Dec-10 22:27 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Dave Kreskowiak29-Dec-10 6:25
mveDave Kreskowiak29-Dec-10 6:25 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang29-Dec-10 14:12
Yance Lawang29-Dec-10 14:12 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang29-Dec-10 14:39
Yance Lawang29-Dec-10 14:39 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang29-Dec-10 14:52
Yance Lawang29-Dec-10 14:52 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Alan Burkhart29-Dec-10 3:35
Alan Burkhart29-Dec-10 3:35 
GeneralRe: How to make windows can't for shutdown/reboot/loggoff? Pin
Yance Lawang29-Dec-10 3:58
Yance Lawang29-Dec-10 3:58 

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.