PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework need for control invoke

Reply

need for control invoke

 
Thread Tools Rate Thread
Old 27-04-2005, 12:17 AM   #1
Stelrad Doulton
Guest
 
Posts: n/a
Default need for control invoke


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


  Reply With Quote
Old 27-04-2005, 08:24 AM   #2
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: need for control invoke

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
>



  Reply With Quote
Old 27-04-2005, 11:46 AM   #3
Stelrad Doulton
Guest
 
Posts: n/a
Default Re: need for control invoke

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
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off