Click here to Skip to main content
15,924,196 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Smart Tags in Visual Studio Editor?? Pin
Dave Kreskowiak17-Jun-04 11:50
mveDave Kreskowiak17-Jun-04 11:50 
GeneralReturning a unique value Pin
Vicetta15-Jun-04 4:01
Vicetta15-Jun-04 4:01 
GeneralRe: Returning a unique value Pin
VenkatFor.NET15-Jun-04 4:18
VenkatFor.NET15-Jun-04 4:18 
GeneralRe: Returning a unique value Pin
Vicetta15-Jun-04 22:43
Vicetta15-Jun-04 22:43 
GeneralRe: Returning a unique value Pin
Robert M Greene18-Jun-04 11:09
Robert M Greene18-Jun-04 11:09 
QuestionHow to ...? Pin
Cheng Zhong15-Jun-04 2:42
Cheng Zhong15-Jun-04 2:42 
QuestionHow to shutdown computer in WinXP? Pin
Cheng Zhong15-Jun-04 2:27
Cheng Zhong15-Jun-04 2:27 
AnswerRe: How to shutdown computer in WinXP? Pin
Dave Kreskowiak15-Jun-04 6:14
mveDave Kreskowiak15-Jun-04 6:14 
You would have to P/Invoke the SetSystemPowerState function in Kernel32. But! 8) You can't force the system to suspend or sleep whenever you want. The system and applications can deny your request, even if you set fForce to True.
Declare Auto Function SetSystemPowerState Lib "kernel32" ( _
   ByVal fSuspend As Boolean, ByVal fForce As Boolean) As Boolean

The docs for SetSystemPowerState are here[^].

Alternatively, you could use SetSuspendState:
Declare Auto Function SetSuspendState Lib "PowrProf" ( _
   ByVal Hibernate As Boolean, ByVal ForceCritical As Boolean, _
   ByVal DisableWakeEvent As Boolean)

The docs for SetSuspendState are here[^].


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: How to shutdown computer in WinXP? Pin
Cheng Zhong15-Jun-04 17:05
Cheng Zhong15-Jun-04 17:05 
Generalquestion Pin
ahmad_yossef15-Jun-04 2:06
ahmad_yossef15-Jun-04 2:06 
GeneralRe: question Pin
Dave Kreskowiak15-Jun-04 2:40
mveDave Kreskowiak15-Jun-04 2:40 
GeneralRe: question Pin
ahmad_yossef15-Jun-04 13:41
ahmad_yossef15-Jun-04 13:41 
GeneralRe: question Pin
Dave Kreskowiak15-Jun-04 14:56
mveDave Kreskowiak15-Jun-04 14:56 
GeneralRe: question Pin
ahmad_yossef15-Jun-04 20:52
ahmad_yossef15-Jun-04 20:52 
GeneralRe: question Pin
Dave Kreskowiak16-Jun-04 2:23
mveDave Kreskowiak16-Jun-04 2:23 
GeneralFormatting to 2 decimal places Pin
Vicetta15-Jun-04 0:57
Vicetta15-Jun-04 0:57 
GeneralRe: Formatting to 2 decimal places Pin
Serge Lobko-Lobanovsky15-Jun-04 1:18
Serge Lobko-Lobanovsky15-Jun-04 1:18 
GeneralRe: Formatting to 2 decimal places Pin
Vicetta15-Jun-04 1:47
Vicetta15-Jun-04 1:47 
Generalregister Ocx while setup project Pin
Anonymous14-Jun-04 22:23
Anonymous14-Jun-04 22:23 
GeneralRe: register Ocx while setup project Pin
anom2m15-Jun-04 9:06
anom2m15-Jun-04 9:06 
GeneralVB6 DAO Class Reference Pin
xfitr214-Jun-04 18:07
xfitr214-Jun-04 18:07 
GeneralRe: VB6 DAO Class Reference [EDITED] Pin
Dave Kreskowiak15-Jun-04 2:38
mveDave Kreskowiak15-Jun-04 2:38 
GeneralRe: VB6 DAO Class Reference Pin
Mekong River15-Jun-04 4:38
Mekong River15-Jun-04 4:38 
GeneralRe: VB6 DAO Class Reference Pin
xfitr215-Jun-04 5:22
xfitr215-Jun-04 5:22 
GeneralRe: VB6 DAO Class Reference Pin
Dave Kreskowiak15-Jun-04 5:33
mveDave Kreskowiak15-Jun-04 5:33 

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.