-
Hmm...Have you tried using module and having a Sub Main () in it to do the thing? Or do you need the form for something?
You could also open the form via Sub Main from the module...Well, I think I better leave answering for someone who is a better helper :rolleyes:
Just I thought: you could make external executable for creating the file, so it stays invisible. Just set the form invisible, launch the filecreating executable and show your form again. Should work nicely...
-
You misunderstood... the problem that I can't get the window list when there's no visible form.
PS: Of course Im having a Sub Main, the form is only there to catch the trayicon-callback, see now why it has to be invisible? :)
-
Please, I have no idea... It works when the form is minimized too, but as soon as I hide it (ShowWindow HWND, SW_HIDE) it doesn't work anymore :(
-
Ok I found out the form needs to be visible during the whole GetList() -function :confused: