By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,601 Members | 989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,601 IT Pros & Developers. It's quick & easy.

Process.Start

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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

Nov 21 '05 #2

P: n/a
"S Shulman" <sm*******@hotmail.com> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

P: n/a
Herfried,

Microsoft Word

Cheers,
Shmuel
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"S Shulman" <sm*******@hotmail.com> schrieb:
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?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

P: n/a
"S Shulman" <sm*******@hotmail.com> schrieb:
Microsoft Word


Mhm... My Word 2003 starts minimized, as expected...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5

P: n/a
I don't start Word.exe I open a word document can that make the difference

Thanks,
Shmuel

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
"S Shulman" <sm*******@hotmail.com> schrieb:
Microsoft Word


Mhm... My Word 2003 starts minimized, as expected...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.