WndProc problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having problems with the reliability of WndProc in my application. The
application has a hidden form, which it instantiates in the Main() and then
calls Application.Run(). There are cases where WndProc does not receive
internal messages via PostMessageA(). Sometimes it works, sometimes it
doesn't. It seems that calling Application.Run(New Form()) works, but since
the form needs to be hidden, this isn't a viable option. Has anyone else
experienced these kind of issues? It just seems that WndProc is very flaky.
Thanks.

-Mike
 
Hi,

Try setting the forms opacity to 0 instead of visible=false to
hide the form.

Ken
 
Hi Ken,

I tried that. The problem is the form is still visible in the taskbar. I
also set the ShowInTaskBar to false, but it can be seen when you Alt+Tab
through the running applications.

-Mike
 
I am not sure, unless the form is loaded, it's window gets registered. So
you may want to call Show on it and then hide the form in its Load event.
 
Thanks for the advice!

TrtnJohn said:
I am not sure, unless the form is loaded, it's window gets registered. So
you may want to call Show on it and then hide the form in its Load event.
 
Back
Top