Page 1 of 1

Process handling (help me please)

Posted: Thu Mar 14, 2013 10:51 pm
by muttley1968
I need help i want to maxmize and minmize processes via a seder tag


basically i tried this

sender.tag.bringtofront but well it didnt work
haha and i need to figure it out but no ideas on
how i can do it

example of what i mean is if notepad is runing then
then i press a button and it will bring it to the top and then
if it allread top most it will send it to the background

any ideas then people

Re: Process handling (help me please)

Posted: Fri Mar 15, 2013 1:45 pm
by noypikami
===set the form always on top of any other opened window========

me.TopMost = True

====send the form on back of the current opened window=========
me.SendToBack()

Re: Process handling (help me please)

Posted: Fri Mar 15, 2013 1:46 pm
by noypikami
===set the form always on top of any other opened window========

me.TopMost = True

====send the form on back of the current opened window=========
me.SendToBack()

Re: Process handling (help me please)

Posted: Fri Mar 15, 2013 3:39 pm
by muttley1968
that would be okay if i built the form but i need to to work for all process not just mine so like if skype is runing my program adds a button to a bar and i want to make it so if they click that button the program it reprsents is brought to front

Re: Process handling (help me please)

Posted: Fri Mar 15, 2013 3:47 pm
by Smiley
I found a discussion about bringing a process to front i tested the code and it worked but i'm having trouble making it send to back.

http://www.pcreview.co.uk/forums/bring- ... 17589.html

the code that worked for me was in the 5th post