Hello,
Winforms internally uses the ParkingWindow Class to Manage Instances of of
Windows that don't yet have a parent or components that need a message pump.
I have come across problems before when using Modal Dialogs that produce a
System.ObjectDisposedException and during the stack trace this has been
something to do with the ParkingWindow Class.
Firstly can you check that your not making more than one call to
EnableVisualStyles, as this has been known in my own experience to cause this
problem.
Secondly ensure that nothing happens in the focused windows
InitalizeComponent method which would cause another WinForm to be created
before the current form has finished Initializing as it will not yet have a
valid handle.
I hope some of this helps you , if not post back and i will look further
into this.
Regards
Scott Blood
c# Developer
"Ar*********@gmail.com" wrote:
I have a program written in vb.net and its working normaly most of the
time but sometimes it loses focus and any interaction with its
interface is prevented.... i tracked the problem and found out that the
reason behind that is called Parkingwindow...
what is Parkingwindow??? can anyone help me fix this problem???
thx in advance!!!