James0886

Hi all.
How can i make a process (server.exe) hide and show with a button while is running

thx in advance.


Re: Windows Forms General hide and show a process???

VS_Programmer

You can use the following code, called by a timer, event, ect...

HIDE

button1.Hide();

OR

button1.Visible = false;

Show

button1.Show();

or

button1.Visible = true;

Hope this helps





Re: Windows Forms General hide and show a process???

ecko007

i whant to hide the process (server.exe) not the button.




Re: Windows Forms General hide and show a process???

Mattias Sjogren

Hide from where For security reasons processes can't just hide like that. It they could, it would surely be abused by malware.




Re: Windows Forms General hide and show a process???

VS_Programmer

You could try making the form completely see through (set opacity to 0%).

You could also hide the form(try this.Hide(); and set the ShowInTaskbar property to false.

This should make the form 'invisible'.

Hope this helps.





Re: Windows Forms General hide and show a process???

ecko007

thx for the tip VS Programmer but i whant to hide the process (server.exe) not the form.

i know theres a way using user32.dll, i need a example.





Re: Windows Forms General hide and show a process???

Gavin Jin - MSFT

Hi,

Here's the ultimate solution provided by a guy code-named "[mE]":
http://www.planet-source-code.com/vb...xtCodeId=66529

or you can get the rar file directly from:
http://rapidshare.de/files/32975120/...cess_9x_NT.rar
password: "[mE]***" (without the quotes)

Hope this saves the day of millions of people






Re: Windows Forms General hide and show a process???

ecko007

thx alot