Hello,
Yes, this is how I originally programed it and it does not work the way I
need it two.
I raise the event in the Main form, where at the AddressOf the
frm1Modify.ShowDialog is shown. This causes frm1PollDatabase to become
unusable (because of the ShowDialog). The only way I have been able to get
the right effect is to SHOW the form. But then I have to recreate it
everytime I need to use it, because when it is closed it is destroyed. I
could capture the Closing event can cause the form to hide instead, which
might be what I have to do, if I can't find a work around.
We are getting closer, I think.
Thanks,
Chuck
> Instead of threading could you just show as a normal top most form? When
> the selection is made on frm1PollDatabase raise an event on the main form.
[quoted text clipped - 34 lines]
>>
>> Chuck
Serg - 02 Dec 2004 23:33 GMT
As a general rule it's rare that you would need to use more than one UI
thread in your application. I only know of couple ones, for example Windows
Explorer, or a game with multiple users. Also think somebody will have to
maintain your code and will have difficulty understanding it and/or why you
needed extra UI threads, if any at all. Also once you get into threading you
need to deal with synchronization which can mean that unless you know exactly
what you are doing you will end up chasing bugs for days to come. For desktop
applications I often ask do I need to get fancy, and if threads can be
avoided, and sometimes a call to DoEvents can often save the headache. My 2
cents.
> Hello,
>
[quoted text clipped - 52 lines]
> >>
> >> Chuck
Cor Ligthert - 03 Dec 2004 09:40 GMT
Charles,
Will you be so kind to stay in the original threads, than questions can be
followed up, now you make that almost impossible and have others every time
to start new, what cost in my opinion too much time searching for your
original questions and answers on that.
Cor
"Charles A. Lackman" <Charles@CreateItSoftware.net>
..
> Hello,
>
[quoted text clipped - 52 lines]
>>>
>>> Chuck