N
Nicolás Castagnet
Hi,
I have a form with a lot of ComboBox (with a lot of items), and it is used
very frequently. So, I want to reduce the latency to show the form.
I test to assign the instance of the form after close in a static field, and
show it again (with ShowDialog). This approach reduce the time to half
(although, the handles are destroyed when the form is closed, and recreated
when it is showed again). But I notice some problems (for example, the
MouseEnter and MouseLeave events are not fired over controls the second time
I show the form).
Other requirements:
- The form must be modal (so, I can't use a Show/Hide methods)
- I need to persist the state in the form (I need to keep the selected
options)
Any advice?
Thanks,
Nicolás
I have a form with a lot of ComboBox (with a lot of items), and it is used
very frequently. So, I want to reduce the latency to show the form.
I test to assign the instance of the form after close in a static field, and
show it again (with ShowDialog). This approach reduce the time to half
(although, the handles are destroyed when the form is closed, and recreated
when it is showed again). But I notice some problems (for example, the
MouseEnter and MouseLeave events are not fired over controls the second time
I show the form).
Other requirements:
- The form must be modal (so, I can't use a Show/Hide methods)
- I need to persist the state in the form (I need to keep the selected
options)
Any advice?
Thanks,
Nicolás