PDA

View Full Version : help with window show and hide


TimeSurfer
01-21-2008, 01:41 PM
in regards to my last thread i have made a 2nd exe which displays the web object and it has an opacity value of 150 for the entire app window which basically gives me a transparent web object =p for my current project. I have named the exe and window TransWeb and have set the taskbar option in the exe to hidden.

my current project is called StarCraft DLR i have set the file.run action in my pages on show event to run the TransWeb exe. my problem is i cannot figure out how to show or hide the TransWeb window when the StarCraft DLR window is the active window [ie the window in focus] or not. i want it to hide the TransWeb window if the StarCraft DLR window isnt in focus [active] and show it if it is. is there anyway to do this???

RizlaUK
01-21-2008, 04:33 PM
a quick solution

have TransWeb.exe store its window handle to ini file in the main app folder, use worms example from a few posts back to check if the main window has focus or not, if not then hide the TransWeb.exe window with "Window.Hide("read window handle from ini file");