C++ SendMessage equivalent in C# ??? 
Author Message
 C++ SendMessage equivalent in C# ???

Hi,
    i want to send messages from a dll to my app, how can i do that? Is
there also any kind of AfxGetApp() or AfxGetMainWnd() like in MFC ???

Regards,

Eric Hebert



Mon, 11 Oct 2004 22:52:02 GMT  
 C++ SendMessage equivalent in C# ???
Eric,

    If you want to get the form that is currently running, you might be able
to use the static ActiveForm property on the Form class to get the currently
active form.

    Can you tell a little bit more about what you are trying to do?  I get
the feeling that the dll is not a .NET dll, and you don't have the ability
to change it.  If this is the case, you will have to use SendMessage and
probably GetActiveWindow to try and get the window handle of the current
window and send messages that way.

    Hope this helps.

--
               - Nicholas Paldino [.NET MVP]


Quote:
> Hi,
>     i want to send messages from a dll to my app, how can i do that? Is
> there also any kind of AfxGetApp() or AfxGetMainWnd() like in mfc ???

> Regards,

> Eric Hebert




Mon, 11 Oct 2004 23:58:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. C# equivalent of C++ const method parameter?

2. What's the C# equivalent of C/C++ __FILE__ and __LINE__

3. What is the C# equivalent to C++ OutputDebugString?

4. Newbie: separate big .cs file into small .cs files

5. C++ vs C# or ( C++ + C#)?

6. SendMessage with C#

7. HELP: SendMessage and CB_GETLBTEXT in C#

8. SendMessage and C# controls

9. C# Equivalent of VB's Alias?

10. IObjectSafety(ATL-C++) - Something equivalent in .NET (C# and VB Controls)

11. MC++ equivalent 'is' (like C#)

12. C# Equivalent

 

 
Powered by phpBB® Forum Software