CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Posts
    4

    Question Posting WM_KEYDOWN message to externa window in C#

    Trying to send a keydown message to separate window. did't find any native C# class to get external windows so i tried to use FindWindow, and SendMessage API functions.
    But i can't make it work, looks like the FindWindow method fails, getting diffrent values back each time?
    Plz help me!

    /B4N WarWulf

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    I believe the FindWindow/SendMessage method is the way to go here. Maybe if you could post your code, someone would see what you are doing wrong?

  3. #3
    Join Date
    Jun 2002
    Posts
    4

    Manage to find the error.

    Solved the problem, had HWND as ulong instead of uint , thanks anyway.

    /B4N WarWulf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured