Click here to Skip to main content
15,899,313 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: contrast and sharpness change of image Pin
Christian Graus27-Jun-07 10:49
protectorChristian Graus27-Jun-07 10:49 
Questiondata binding update data source Pin
Mortezai27-Jun-07 6:49
Mortezai27-Jun-07 6:49 
AnswerRe: data binding update data source Pin
Dave Kreskowiak27-Jun-07 7:13
mveDave Kreskowiak27-Jun-07 7:13 
GeneralRe: data binding update data source Pin
Mortezai27-Jun-07 9:22
Mortezai27-Jun-07 9:22 
GeneralRe: data binding update data source Pin
Dave Kreskowiak27-Jun-07 9:40
mveDave Kreskowiak27-Jun-07 9:40 
QuestionWhich API do I call to abort logoff/shutdown Pin
kbern327-Jun-07 5:43
kbern327-Jun-07 5:43 
AnswerRe: Which API do I call to abort logoff/shutdown Pin
Craster27-Jun-07 5:58
Craster27-Jun-07 5:58 
AnswerRe: Which API do I call to abort logoff/shutdown Pin
Psycho-*Coder*-Extreme27-Jun-07 17:54
Psycho-*Coder*-Extreme27-Jun-07 17:54 
Though Craster's solution is the way it should actually be, if you don't/can't/won't do it that way you can use the System.Diagnostics.Process namespace and search for that process and see if it's running in the task manager, if it's found then warn the user, such as:

Public Function IsProcessRunning(ByVal sProcessName As String) As Boolean
   For Each clsProcess As System.Diagnostics.Process In System.Diagnostics.Process.GetProcesses
       If clsProcess.ProcessName.Contains(sProcessName) Then
           Return True
       Else
           Return False
       End If
   Next
End Function


Then you can call it like this:
If IsProcessRunning("vmware-vmx") Then 'Leave the .exe off
   MessageBox.Show("VMWare is currently running. Please log off of VMWare before shutting down",,"Critical Process Running", _
MessageBoxButtons.OK,MessageBoxIcon.Error,MessageBoxDefaultButton.Button1,MessageBoxOptions.ServiceNotification,False)
Else
   'Else do your processing here
End If











QuestionRe: Which API do I call to abort logoff/shutdown Pin
kbern328-Jun-07 3:34
kbern328-Jun-07 3:34 
Questionimage from server ? Pin
porsti27-Jun-07 5:01
porsti27-Jun-07 5:01 
AnswerRe: image from server ? Pin
Dave Kreskowiak27-Jun-07 5:11
mveDave Kreskowiak27-Jun-07 5:11 
AnswerRe: image from server ? Pin
Psycho-*Coder*-Extreme27-Jun-07 18:06
Psycho-*Coder*-Extreme27-Jun-07 18:06 
QuestionSetting the Help Window with the HelpProvider Control Pin
RichFeldman27-Jun-07 4:09
RichFeldman27-Jun-07 4:09 
QuestionGenerating Unique Alpha-Numeric ID's? Pin
DarynRoberts27-Jun-07 3:35
DarynRoberts27-Jun-07 3:35 
AnswerRe: Generating Unique Alpha-Numeric ID's? Pin
nlarson1127-Jun-07 4:03
nlarson1127-Jun-07 4:03 
GeneralRe: Generating Unique Alpha-Numeric ID's? Pin
DarynRoberts27-Jun-07 22:02
DarynRoberts27-Jun-07 22:02 
GeneralRe: Generating Unique Alpha-Numeric ID's? Pin
nlarson1128-Jun-07 3:32
nlarson1128-Jun-07 3:32 
GeneralRe: Generating Unique Alpha-Numeric ID's? Pin
DarynRoberts29-Jun-07 0:52
DarynRoberts29-Jun-07 0:52 
AnswerRe: Generating Unique Alpha-Numeric ID's? Pin
Guffa27-Jun-07 12:31
Guffa27-Jun-07 12:31 
GeneralRe: Generating Unique Alpha-Numeric ID's? Pin
Mycroft Holmes27-Jun-07 23:00
professionalMycroft Holmes27-Jun-07 23:00 
GeneralRe: Generating Unique Alpha-Numeric ID's? Pin
Guffa28-Jun-07 2:10
Guffa28-Jun-07 2:10 
Answerthanks Pin
DarynRoberts28-Jun-07 22:06
DarynRoberts28-Jun-07 22:06 
QuestionFSO.FolderExists Problem Pin
DanB198327-Jun-07 1:17
DanB198327-Jun-07 1:17 
AnswerRe: FSO.FolderExists Problem Pin
Steven J Jowett27-Jun-07 3:45
Steven J Jowett27-Jun-07 3:45 
GeneralRe: FSO.FolderExists Problem Pin
DanB198327-Jun-07 3:50
DanB198327-Jun-07 3:50 

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.