PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
need for control invoke
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
need for control invoke
![]() |
need for control invoke |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I am well aware of the need to invoke gui stuff from threads other than the GUI thread but reading some other post tonight the thread seemed to suggest that this was not neccessary for MessageBox.Show. Is this the case? I have always done the invoking for MessageBoxes, maybe this was wrong of me. If so why? Cheers |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Technically you can show a messagebox from a non UI thread. However you
should be aware of what effect this will have on your application since your thread will block until the messagebox is dismissed. Peter -- Peter Foot Windows Embedded MVP http://www.inthehand.com | http://www.peterfoot.net | http://www.opennetcf.org "Stelrad Doulton" <___@____.com> wrote in message news:v_zbe.9371$vU4.1443@newsfe6-win.ntli.net... > Hi, > > I am well aware of the need to invoke gui stuff from threads other than > the GUI thread but reading some other post tonight the thread seemed to > suggest that this was not neccessary for MessageBox.Show. Is this the > case? I have always done the invoking for MessageBoxes, maybe this was > wrong of me. If so why? > > > Cheers > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
OK, thanks I didn't know that.
"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message news:eBUzdovSFHA.2756@tk2msftngp13.phx.gbl... > Technically you can show a messagebox from a non UI thread. However you > should be aware of what effect this will have on your application since > your thread will block until the messagebox is dismissed. > > Peter > > -- > Peter Foot > Windows Embedded MVP > http://www.inthehand.com | http://www.peterfoot.net | > http://www.opennetcf.org > > "Stelrad Doulton" <___@____.com> wrote in message > news:v_zbe.9371$vU4.1443@newsfe6-win.ntli.net... >> Hi, >> >> I am well aware of the need to invoke gui stuff from threads other than >> the GUI thread but reading some other post tonight the thread seemed to >> suggest that this was not neccessary for MessageBox.Show. Is this the >> case? I have always done the invoking for MessageBoxes, maybe this was >> wrong of me. If so why? >> >> >> Cheers >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

