Process.Start

  • Thread starter Thread starter S Shulman
  • Start date Start date
S

S Shulman

Hi all
I added the following code to my program but the process doesn't open with a
minimized window

Dim obProcessStyle As New Diagnostics.ProcessStartInfo(sNewFullFilePathName)
obProcessStyle.WindowStyle = ProcessWindowStyle.Minimized

Thank you,
Shmuel Shulman
 
Shmuel

Do you use it like this
\\
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.arguments = "c:\windows\win.ini"
pi.FileName = "notepad.exe"
p.startinfo = pi
p.Start()
///

Why you use ob before every object, everything is an object or a value, so
what is that giving extra information?.

However I hope that the sample helps?

Cor
 
S Shulman said:
I added the following code to my program but the process doesn't open with
a minimized window

Dim obProcessStyle As New
Diagnostics.ProcessStartInfo(sNewFullFilePathName)
obProcessStyle.WindowStyle = ProcessWindowStyle.Minimized

Your code works for me as expected. What program are you starting?
 
I don't start Word.exe I open a word document can that make the difference

Thanks,
Shmuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MenuItem35.PerformClick() 2
Registration of a MAPI dll 2
Menu Question 3
Release Memory 4
Threads 2
Printing Problem 2
Date/Time control 4
Menu Button 4

Back
Top