2 Replies - 6028 Views - Last Post: 26 June 2006 - 09:51 AM Rate Topic: -----

#1 vutaviva  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 09-June 06

Insert text into webpage textbox

Posted 14 June 2006 - 12:18 PM

Hi,
I used WebBrowser to load a webpage in my dialog. Now I want to insert text into a webpage's textbox (e.g., username textbox on gmail), but I have not thought how to solve this problem yet. Please help me again!
Thanks so much.
Is This A Good Question/Topic? 0
  • +

Replies To: Insert text into webpage textbox

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Insert text into webpage textbox

Posted 14 June 2006 - 11:50 PM

I don't have the WebBrowser Control so I can't comment much on this.
But worst comes to worst if you don't come up with any solutions, you can use this (sloppy) method.
  • Set Focus to the Web Browser Control.
  • Use SendKeys to send one tab first to set the focus to the username.Then use SendKeys again to write the username in the Textbox.
  • Send another Tab along with the password to set the password in the Password Text Field.
This is not the best solution. Also be aware that this will work only on the current design of the Gmail Webpage. If Gmail decides to include any more textboxes or controls between the two text boxes(username and password), you'll end up filling the wrong fields.
Was This Post Helpful? 0
  • +
  • -

#3 vutaviva  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 09-June 06

Re: Insert text into webpage textbox

Posted 26 June 2006 - 09:51 AM

Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1