PC Review


Reply
Thread Tools Rate Thread

Code behind Control.Invoke

 
 
=?Utf-8?B?SlBSb290?=
Guest
Posts: n/a
 
      4th Feb 2004
Hi all

Does anybody knows the code behind System.Windows.Forms.Control.Invoke

Is it using Win32 SendMessage with some WM_USER + x message

Any hints would help

I have a mixed environment (MFC, Win32 and .NET) and need to resolve some issue with windows message queue

Thank
JPRoot
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SlBSb290?=
Guest
Posts: n/a
 
      4th Feb 2004
Next question: same thing but with BeginInvoke/EndInvoke
Thank
JPRoo

----- JPRoot wrote: ----

Hi all

Does anybody knows the code behind System.Windows.Forms.Control.Invoke

Is it using Win32 SendMessage with some WM_USER + x message

Any hints would help

I have a mixed environment (MFC, Win32 and .NET) and need to resolve some issue with windows message queue

Thank
JPRoot
 
Reply With Quote
 
Stoitcho Goutsev \(100\) [C# MVP]
Guest
Posts: n/a
 
      4th Feb 2004
Hi JPRoot,
I would say that ControlInvoke uses SendMessage and BeginInvoke\EndInvoke
uses SendMessageCallback, but what I see is that both of them post a message

--
B\rgds
100

"JPRoot" <(E-Mail Removed)> wrote in message
news:CCAEB02A-2EA2-4A0B-B54D-(E-Mail Removed)...
> Hi all,
>
> Does anybody knows the code behind System.Windows.Forms.Control.Invoke?
>
> Is it using Win32 SendMessage with some WM_USER + x message?
>
> Any hints would help.
>
> I have a mixed environment (MFC, Win32 and .NET) and need to resolve some

issue with windows message queue.
>
> Thanks
> JPRoot



 
Reply With Quote
 
Ying-Shen Yu[MSFT]
Guest
Posts: n/a
 
      5th Feb 2004
Hi,

Could you write a small winform program and look into it using Spy++?
I guess it will show the message id and if the message is sent or posted.

If you still have problem on this issue,
please reply this thread to let me know.

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to use anonymous methods to invoke code on a control =?Utf-8?B?QnJhZA==?= Microsoft Dot NET Compact Framework 1 4th Mar 2007 03:19 PM
Control.Invoke Cool Guy Microsoft Dot NET Framework 1 7th Jun 2005 06:46 PM
question anbout control.invoke and control.begininvoke C# Microsoft Dot NET Framework Forms 4 24th May 2004 09:45 AM
Using Control.Invoke Aaron Microsoft Dot NET Framework Forms 0 19th Aug 2003 05:45 PM
When/how to invoke the VB Code Daise Microsoft Access Form Coding 3 24th Jul 2003 10:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.