By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,875 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

How do I type something in a textarea with Microsoft Internet Controls (WebBrowser)

P: 3
Hi, I am trying to make an function that fills out a form and submits it.

Below this text you can see a bit of the code, its working fine, but this line:
WebBrowser1.Document.All.body.Value = Message.Text
dont work, im not sure why, because the other lines work.

I dont get an error, but it doesn't put the text from the textbox Message into the html form.

Expand|Select|Wrap|Line Numbers
  1. WebBrowser1.Navigate "javascript:newmsg()"
  2. DoEvents
  3. While WebBrowser1.Busy = True
  4. DoEvents
  5. Wend
  6. = Tomail.Text
  7. WebBrowser1.Document.All.subject.Value = Subject.text
  8. WebBrowser1.Document.All.body.Value = Message.Text
Here is a bit of the html code:
Expand|Select|Wrap|Line Numbers
  1.                           </script></td>
  2.                         </tr>
  3.                       </tbody>
  4.                     </table>
  5.                     <div id="hiddenCompose2"
  6.  style="position: absolute; left: 3px; top: -100px; visibility: hidden; z-index: 3;"><textarea
  7.  rows="15" name="body" class="normal"
  8.  style="width: 445px;"></textarea>
  9.                     </div>
  10.                     </td>
  11.                   </tr>
Sep 10 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.