Click here to Skip to main content
15,916,188 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSearching for files using vb.net 2005 Pin
mitsroff7-May-06 9:49
mitsroff7-May-06 9:49 
AnswerRe: Searching for files using vb.net 2005 Pin
CWIZO7-May-06 21:50
CWIZO7-May-06 21:50 
AnswerRe: Searching for files using vb.net 2005 Pin
Yuvi Panda7-May-06 22:01
Yuvi Panda7-May-06 22:01 
QuestionDisplay Windows logoff dialog box Pin
setedivento7-May-06 6:41
setedivento7-May-06 6:41 
AnswerDisplay Windows logoff dialog box Pin
setedivento7-May-06 9:13
setedivento7-May-06 9:13 
GeneralRe: Display Windows logoff dialog box Pin
setedivento7-May-06 22:03
setedivento7-May-06 22:03 
GeneralRe: Display Windows logoff dialog box Pin
User 17164928-May-06 15:16
professionalUser 17164928-May-06 15:16 
GeneralRe: Display Windows logoff dialog box Pin
setedivento8-May-06 22:52
setedivento8-May-06 22:52 
first of all thanks for your answer...
but sorry,no,it's not what i want.i knew ExitWindows or ExitWindowsEx API function,but i didn't and still don't want to actually logoff the computer,i just want to show the coloured dialog box Windows Xp shows to the user when s/he clicks on the Logoff button on the start menu taskbar.
I hope to make it clearer in this example:ExitWindows also shuts the computer down.So,if i had wanted to do so,i would have used the above-mentioned function:but to show the shutdown dialog box i would instead have used the SHShutdownDialog function(try it in the example i have written below).So,i was searching for a similar api,or whatsoever goals the same result with the logoff dialog box.

example in vb6:
<br />
Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long<br />
Private Sub Form_Load()<br />
    'KPD-Team 1999<br />
    'URL: http://www.allapi.net/<br />
    'E-Mail: KPDTeam@Allapi.net<br />
    SHShutDownDialog 0<br />
End Sub<br />




-- modified at 4:54 Tuesday 9th May, 2006
GeneralRe: Display Windows logoff dialog box Pin
setedivento9-May-06 4:07
setedivento9-May-06 4:07 
GeneralRe: Display Windows logoff dialog box Pin
User 17164929-May-06 7:43
professionalUser 17164929-May-06 7:43 
GeneralRe: Display Windows logoff dialog box Pin
setedivento9-May-06 13:15
setedivento9-May-06 13:15 
Questionformat(string, "dd/MM/yyyy") as date Pin
pptadam7-May-06 4:32
pptadam7-May-06 4:32 
AnswerRe: format(string, "dd/MM/yyyy") as date Pin
Paul Conrad7-May-06 5:02
professionalPaul Conrad7-May-06 5:02 
AnswerRe: format(string, "dd/MM/yyyy") as date Pin
Guffa7-May-06 5:41
Guffa7-May-06 5:41 
Questionmsfgrid in VB.net Pin
viji]7-May-06 1:49
viji]7-May-06 1:49 
AnswerRe: msfgrid in VB.net Pin
Mekong River7-May-06 5:37
Mekong River7-May-06 5:37 
Questiondatagridview columns text alignment Pin
G723607-May-06 1:30
G723607-May-06 1:30 
AnswerRe: datagridview columns text alignment Pin
Mekong River7-May-06 5:42
Mekong River7-May-06 5:42 
QuestionExtract Data from A WebSite through a WebBrowser Control? Pin
TehCheeze7-May-06 0:45
TehCheeze7-May-06 0:45 
AnswerRe: Extract Data from A WebSite through a WebBrowser Control? Pin
Kessica8-May-06 1:34
Kessica8-May-06 1:34 
QuestionSql File in DLL problem Pin
anom2m6-May-06 23:37
anom2m6-May-06 23:37 
AnswerRe: Sql File in DLL problem Pin
Rizwan Bashir7-May-06 21:34
Rizwan Bashir7-May-06 21:34 
GeneralRe: Sql File in DLL problem Pin
anom2m17-May-06 0:45
anom2m17-May-06 0:45 
GeneralRe: Sql File in DLL problem Pin
Rizwan Bashir17-May-06 5:32
Rizwan Bashir17-May-06 5:32 
QuestionA question about event handlers Pin
carloqueirolo6-May-06 21:18
carloqueirolo6-May-06 21:18 

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.