|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to show a form in another threadI have an app with code that continuously executes on a form in a timer
control. I also need to show another form without interrupting the code executing in this timer. I suspect that to do that I will need to launch the other form in its own thread. Any sample code on how to do this? Thanks for any help, Bob "Robert Dufour" <bduf***@sgiims.com> wrote in I you call "show form" rather than showdialog, your thread will not be held news:e0GT0YwHHHA.3668@TK2MSFTNGP02.phx.gbl: > I have an app with code that continuously executes on a form in a > timer control. I also need to show another form without interrupting > the code executing in this timer. I suspect that to do that I will > need to launch the other form in its own thread. up. Thanks, I wasn't sure of that, that keeps it simple.
BOB Show quoteHide quote "Spam Catcher" <spamhoneypot@rogers.com> wrote in message news:Xns9898B51633191usenethoneypotrogers@127.0.0.1... > "Robert Dufour" <bduf***@sgiims.com> wrote in > news:e0GT0YwHHHA.3668@TK2MSFTNGP02.phx.gbl: > >> I have an app with code that continuously executes on a form in a >> timer control. I also need to show another form without interrupting >> the code executing in this timer. I suspect that to do that I will >> need to launch the other form in its own thread. > > I you call "show form" rather than showdialog, your thread will not be > held > up. If you do show a form from another thread, then won't that thread become
another UI thread and all messages to the form will have to be handled in that thread? Just trying to understand the process. -- Show quoteHide quoteDennis in Houston "Robert Dufour" wrote: > Thanks, I wasn't sure of that, that keeps it simple. > BOB > "Spam Catcher" <spamhoneypot@rogers.com> wrote in message > news:Xns9898B51633191usenethoneypotrogers@127.0.0.1... > > "Robert Dufour" <bduf***@sgiims.com> wrote in > > news:e0GT0YwHHHA.3668@TK2MSFTNGP02.phx.gbl: > > > >> I have an app with code that continuously executes on a form in a > >> timer control. I also need to show another form without interrupting > >> the code executing in this timer. I suspect that to do that I will > >> need to launch the other form in its own thread. > > > > I you call "show form" rather than showdialog, your thread will not be > > held > > up. > > >
Updating database in a loop
System.Threading.Timer does not tick Q: DataColumn Expressions There is already an open DataReader associated with this Connection which must be closed first What is WebBrowser control called now? The below snippet does not work...anyone know how to reference a procedure? Looping through all Tables in a Database Form1.closing in VB2005??? Datagrid problem how can I reference this bitmap????????? |
|||||||||||||||||||||||