U
Urs Vogel
Hi
I would like to set a Windows.Form into a non responsive state, i.e. that it
does not respond to user input of any kind, similar to the state a forms
gets when another modal form is opened ontop with ShowDialog(). Form.Enabled
= false is not what I'm looking for, it changes the look of the form by
graying the window caption and the controls and is (very) slow, too.
I need this behaviour to prevent the user from entering data or clicking
onto controls while data is being processed on a server. In order to keep
the event thread responsive, the call to the server is launched from another
thread, so it can repaint and show intermediate results received from the
server. Once the final result is returned from the server, the form should
get back into a normal responsive state.
Any hints?
Thanks
Urs
I would like to set a Windows.Form into a non responsive state, i.e. that it
does not respond to user input of any kind, similar to the state a forms
gets when another modal form is opened ontop with ShowDialog(). Form.Enabled
= false is not what I'm looking for, it changes the look of the form by
graying the window caption and the controls and is (very) slow, too.
I need this behaviour to prevent the user from entering data or clicking
onto controls while data is being processed on a server. In order to keep
the event thread responsive, the call to the server is launched from another
thread, so it can repaint and show intermediate results received from the
server. Once the final result is returned from the server, the form should
get back into a normal responsive state.
Any hints?
Thanks
Urs