Destroy a window automatically - P/invoke...window handle??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teixeira
    New Member
    • Dec 2006
    • 8

    Destroy a window automatically - P/invoke...window handle??

    Hello,

    I'm using a 3rd part DLL via Add reference i my C# project and sometimes the DLL generate a messagebox with an error and an OK button.

    I would like to know if its possible to automatically and programatically do the "OK Click" or how to destroy this window.
    This windows is not a separeated proccess so i cannot kill it using System.Diagnost ics.Process any idea?? I heard about windows handle and maybe with p/invoke but i can see how can i do it.

    Thanks in advance,
    Teixeira
  • teixeira
    New Member
    • Dec 2006
    • 8

    #2
    I found the solution at codeproject.

    here's the link if someone else need:


    Best regards,
    Tiago Teixeira

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Scrub the your data ahead of time to ensure that your DLL calls will not result in error.

      Comment

      Working...