473,382 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Minimize a process

I have written code to start another process and a form is displayed within
my app to let the user know the process is running. The problem is the
process runs in normal mode and shows in front of the app. I would ideally
like to manipulate the process's window mode to minimize it, or possibly hide
it, like the options the Shell() command has.

Any ideas?

Thanks.

Tippy.
Jul 21 '05 #1
1 2043
"Tippy G" <Ti****@discussions.microsoft.com> schrieb
I have written code to start another process and a form is displayed within
my app to let the user know the process is running. The problem is the
process runs in normal mode and shows in front of the app. I would ideally
like to manipulate the process's window mode to minimize it, or possibly
hide
it, like the options the Shell() command has.


Dim psi As ProcessStartInfo = New ProcessStartInfo
psi.WindowStyle = ProcessWindowStyle.Hidden
'psi.WindowStyle = ProcessWindowStyle.Maximized
'psi.WindowStyle = ProcessWindowStyle.Minimized
'psi.WindowStyle = ProcessWindowStyle.Normal
psi.FileName = "..."
Dim p As Process = New Process
p.StartInfo = psi
p.Start()

Cheers

Arne Janning
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: varadha | last post by:
Hi, i want to create a VC++ application that minimizes to system tray when i minimize it. This application should be running in the background and doing it process(Just like Yahoo messanger...
3
by: Mike Oliszewski | last post by:
I am attempting to install the MSDE (SQL 2000) as a part of our application. This requires that you run the MSDE setup.exe program from a Console mode application, it just hangs forever part way...
2
by: GG | last post by:
Is there a way to minimize my current console app? Using this code but does not work System.Diagnostics.Process currentProcess=System.Diagnostics.Process.GetCurrentProcess(); ...
2
by: Ramkishan Algude via DotNetMonster.com | last post by:
I am New Member on this site. And also new learner to .Net. I have a query, I have to minimize/maximize the currently running some applications on my system through my VB.Net application. Please...
1
by: Bob | last post by:
Hi, Application A (A legacy 16 Bit Windows App.) has a background process that is required by Dot net Application B. For security reasons Application A's GUI needs to be made unavailable to the...
1
by: Tippy G | last post by:
I have written code to start another process and a form is displayed within my app to let the user know the process is running. The problem is the process runs in normal mode and shows in front of...
2
by: jj | last post by:
I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are...
3
by: san | last post by:
we cannot stop the application from increasingly use memory. The CRM Worker process will continually consume memory but not release it back to the system. Please research into how to make the...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.