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 4 1364
* "Urs Vogel" <ur******@yahoo.com> scripsit:
[...]
Please don't multipost. See my reply in the other group.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
> 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. (...)
Hide the form (Visible=False), pop up the "Processing..." dialog with the
progress bar, animated hourglass or something. When the processing is done,
close the "Processing..." dialog and set the form back to the visible state.
sincerely,
--
Sebastian Zaklada
Skilled Software http://www.skilledsoftware.com
************************************
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation
"Urs Vogel" <ur******@yahoo.com> schrieb 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?
You wrote
"I would like to set a Windows.Form into a non responsive state..."
and
"In order to keep the event thread responsive,..."
Contradiction? :-)
Either the UI is responsive or not. As you want to display something, it
must be responsive. I assume you don't want to create a 2nd UI thread, so I
see 2 ways:
a) disable all controls that should not be usable by the user during the
process
b) show another (modal) progress/result form, so you don't have to disable
the current form.
--
Armin
How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Lol - I could do with this tip too. At the moment, I'm manually "disabling"
those windows I don't want interaction with while the server thread is
running. It causes some flicker and is slow -
I guess some way of intercepting the message pump would be useful.
"Urs Vogel" <ur******@yahoo.com> wrote in message
news:Om*************@TK2MSFTNGP11.phx.gbl... 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sean Abrahams |
last post by:
The following is a reprint of a message I sent to the tutor list a long
time ago, that I haven't gotten around to discussing with anyone else
and failed to hear a reply on the tutor list. Hoping...
|
by: Yasutaka Ito |
last post by:
Hi,
As you know, all the non-ui components (like Timer control, etc.) that sit
on the form are contained in its private variable 'components'.
How can I enumerate such components from any form...
|
by: Mark |
last post by:
Hi all,
Is there a "standard" way to structure a small windows form such that it can
run non-interactively with an appropriate command line switch?
E.g, if I run the form normally I get the...
|
by: Dave |
last post by:
I need to add the ability to drag from a Windows Form and drop into a
non dotNet application. For example, having a generated image in my
app that I wish to drag out into explorer as a friendly way...
|
by: Tiraman |
last post by:
Hi,
i have some questions about non-rectangular forms
1) i build a form as a non-rectangular by setting the form background to
some bmp file and the transparenceyKey to the
color which i want...
| |
by: jmp |
last post by:
(I hope this isn't considered too far off-topic.)
I work as a developer on a browser product found on handheld devices,
and I'm trying to specify behavior for the browser to make it "as...
|
by: Harry_Crow |
last post by:
I wanted to change the Non client area height. This was not possible in
the existing Form TitleBar. So I set the FormBorderStyle= None and I
calculated and introduced the Non Client area myself. So...
|
by: scottf35 |
last post by:
Hi,
I am working on (read that - upgrading) an application. This
application creates an HTTPWebRequest object, populates it with values
which are then sucked out of the Request.Form object (eg...
|
by: raylopez99 |
last post by:
I have a form, Form6, that has a bunch of buttons overlaid on it. I
want to be able to click on any arbitrary area of the form, and if
that area of the form is overlaid by a button, I want to...
|
by: DonRayner |
last post by:
This one has me stumped. I'm getting a "Type Mismatch" error on one of my forms when it's being opened. It's hapening before the forms "On Open" event, I stuck a msgbox in there to check and I'm...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |