Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is this program thread safe Pin
Mogaambo20-Jul-08 21:46
Mogaambo20-Jul-08 21:46 
AnswerRe: Is this program thread safe Pin
N a v a n e e t h20-Jul-08 21:35
N a v a n e e t h20-Jul-08 21:35 
AnswerRe:Senthil or Navneeth please clear my doubt [modified] Pin
Mogaambo20-Jul-08 21:47
Mogaambo20-Jul-08 21:47 
GeneralRe:Senthil or Navneeth please clear my doubt Pin
S. Senthil Kumar20-Jul-08 22:23
S. Senthil Kumar20-Jul-08 22:23 
GeneralRe:Senthil or Navneeth please clear my doubt Pin
Mogaambo20-Jul-08 22:33
Mogaambo20-Jul-08 22:33 
GeneralRe:Senthil or Navneeth please clear my doubt Pin
S. Senthil Kumar20-Jul-08 22:44
S. Senthil Kumar20-Jul-08 22:44 
GeneralRe:Senthil or Navneeth please clear my doubt Pin
Mogaambo20-Jul-08 22:49
Mogaambo20-Jul-08 22:49 
GeneralRe:Senthil or Navneeth please clear my doubt Pin
S. Senthil Kumar20-Jul-08 23:01
S. Senthil Kumar20-Jul-08 23:01 
You do understand what Invoke or BeginInvoke does, don't you? They help you execute the delegate, that you pass as the parameter, on the UI thread. Invoke will wait until the delegate completes, BeginInvoke simply posts it to the UI message queue and returns.

Either way, the UI thread executes the delegate - this is the "second time" that you are talking about. InvokeRequired will obviously be false, since it's the UI thread that created the control on which InvokeRequired is called.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

QuestionHTTP authentication Pin
George_George20-Jul-08 20:17
George_George20-Jul-08 20:17 
AnswerRe: HTTP authentication Pin
N a v a n e e t h20-Jul-08 20:48
N a v a n e e t h20-Jul-08 20:48 
GeneralRe: HTTP authentication Pin
George_George20-Jul-08 21:07
George_George20-Jul-08 21:07 
GeneralRe: HTTP authentication Pin
N a v a n e e t h20-Jul-08 21:27
N a v a n e e t h20-Jul-08 21:27 
GeneralRe: HTTP authentication Pin
George_George20-Jul-08 21:31
George_George20-Jul-08 21:31 
QuestionSuppressing dialogs in webbrowser control? Pin
Christopher Duncan20-Jul-08 17:16
Christopher Duncan20-Jul-08 17:16 
AnswerRe: Suppressing dialogs in webbrowser control? Pin
leppie20-Jul-08 23:01
leppie20-Jul-08 23:01 
GeneralRe: Suppressing dialogs in webbrowser control? Pin
Christopher Duncan21-Jul-08 6:03
Christopher Duncan21-Jul-08 6:03 
QuestionObjectOutput/Input Interfaces Pin
DwR20-Jul-08 11:04
DwR20-Jul-08 11:04 
AnswerRe: ObjectOutput/Input Interfaces Pin
Guffa20-Jul-08 14:41
Guffa20-Jul-08 14:41 
QuestionCSS File Pin
hadad20-Jul-08 10:36
hadad20-Jul-08 10:36 
AnswerRe: CSS File Pin
Pete O'Hanlon20-Jul-08 10:55
mvePete O'Hanlon20-Jul-08 10:55 
Question*.mht and web browser Pin
half-life20-Jul-08 7:17
half-life20-Jul-08 7:17 
QuestionCan I play sound file from SQL Database using c# [modified] Pin
The Glory20-Jul-08 6:42
The Glory20-Jul-08 6:42 
NewsRe: Can I play sound file from SQL Database using c# Pin
Mbah Dhaim20-Jul-08 12:39
Mbah Dhaim20-Jul-08 12:39 
AnswerRe: Can I play sound file from SQL Database using c# Pin
Niranjan Kala2-Mar-09 1:52
Niranjan Kala2-Mar-09 1:52 
QuestionAutomatically Recalculate a value Pin
belzer20-Jul-08 4:22
belzer20-Jul-08 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.