
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