Click here to Skip to main content
15,887,262 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalvb.net, textbox connected with database Pin
Member 149603823-Nov-04 8:32
Member 149603823-Nov-04 8:32 
GeneralRe: vb.net, textbox connected with database Pin
jlawren723-Nov-04 12:36
jlawren723-Nov-04 12:36 
GeneralRe: vb.net, textbox connected with database Pin
Anonymous2-Dec-04 14:28
Anonymous2-Dec-04 14:28 
GeneralRe: vb.net, textbox connected with database Pin
Member 14960382-Dec-04 14:31
Member 14960382-Dec-04 14:31 
GeneralIssue with Keyboard Handling Pin
rascalot23-Nov-04 5:31
rascalot23-Nov-04 5:31 
GeneralListview Pin
Paps223-Nov-04 4:44
Paps223-Nov-04 4:44 
GeneralRe: Listview Pin
Pablo.ar24-Nov-04 3:02
Pablo.ar24-Nov-04 3:02 
GeneralProcesses Pin
cwayman23-Nov-04 3:13
cwayman23-Nov-04 3:13 
Hey,

Is there a way to check if an application is running in the Task Manager? and if it is kill it before starting my own custom process?

I have the following function which sends a file to a printer but it opens up the application (e.g. MS Word) and sends the print command before closing it again.

Private Sub SendFileToPrinter()

     Dim startinfo As New ProcessStartInfo
     startinfo.FileName = strFullFilePath

     startinfo.Verb = "print"
     startinfo.WindowStyle = ProcessWindowStyle.Hidden

     Process.Start(startinfo)

 End Sub


The problem is that sometimes it doesnt exit the application fully and it is still running in the background.

Is the a way to get the location of the application .exe file that is running from the MIME type of the file, and then close it?

thanks for your help

Chris
GeneralRe: Processes Pin
Carlos Cruz Espino24-Jan-05 11:41
Carlos Cruz Espino24-Jan-05 11:41 
GeneralHTTP Upload Pin
Purple Monk23-Nov-04 2:46
Purple Monk23-Nov-04 2:46 
GeneralConvert to Date Pin
nitin_ion23-Nov-04 2:37
nitin_ion23-Nov-04 2:37 
GeneralRe: Convert to Date Pin
Dave Kreskowiak23-Nov-04 3:04
mveDave Kreskowiak23-Nov-04 3:04 
GeneralRe: Convert to Date Pin
nitin_ion23-Nov-04 4:56
nitin_ion23-Nov-04 4:56 
GeneralRe: Convert to Date Pin
cwayman23-Nov-04 5:30
cwayman23-Nov-04 5:30 
GeneralRe: Convert to Date Pin
Dave Kreskowiak23-Nov-04 6:31
mveDave Kreskowiak23-Nov-04 6:31 
GeneralBest way in getting reading from joystick in VBNet Pin
l03001022-Nov-04 19:23
l03001022-Nov-04 19:23 
GeneralRe: Best way in getting reading from joystick in VBNet Pin
Dave Kreskowiak23-Nov-04 0:46
mveDave Kreskowiak23-Nov-04 0:46 
GeneralFill Labels with SQL Search Results .Net Pin
jlawren722-Nov-04 15:57
jlawren722-Nov-04 15:57 
GeneralHighlighting a Row in a Datagrid Pin
tech@untouchable22-Nov-04 14:22
tech@untouchable22-Nov-04 14:22 
GeneralImplementing Permissions Over Remoting Pin
Paebbels22-Nov-04 11:18
Paebbels22-Nov-04 11:18 
GeneralDeployment Project questions Pin
KreativeKai22-Nov-04 8:58
professionalKreativeKai22-Nov-04 8:58 
GeneralCalling a "Final" routine when application is ended by machine closing. Pin
HollenG22-Nov-04 7:32
HollenG22-Nov-04 7:32 
GeneralRe: Calling a "Final" routine when application is ended by machine closing. Pin
Dennis C. Dietrich22-Nov-04 8:52
Dennis C. Dietrich22-Nov-04 8:52 
GeneralRe: Calling a "Final" routine when application is ended by machine closing. Pin
HollenG22-Nov-04 9:22
HollenG22-Nov-04 9:22 
GeneralRe: Calling a "Final" routine when application is ended by machine closing. Pin
HollenG23-Nov-04 6:59
HollenG23-Nov-04 6:59 

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.