Win32 SetText call to a TextBox in IEFrame

Discussion in 'Win32' started by RobK, Jun 26, 2008.

  1. RobK

    RobK New Member

    Joined:
    Jun 26, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have been doing Win32 programming for several years now, and it wasn't until this week that I have been truely stumped. I'm trying to write a .NET app that will populate a text field in a web page in Internet explorer.

    Now, when I run any API spy to find the appropriate handles for the items within the "ieframe" class (Internet Explorer window) I can only get a handle for the entire web page within the browser, and not the object within it such as text boxes.

    What I am trying to execute is:
    //hIETextbox is the handle of the textbox in the web page...
    SendMessageByString(hIETextbox, WM_SETTEXT, 0&, "This is my Text");


    It works for any other application with text box's, but not IE?!?

    Any Help?
    I can work with samples from any .NET language, thanks.
    Rob.

    BTW...Awsome site, just what I was looking for...
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice