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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpenzeR
    New Member
    • Sep 2007
    • 3

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

    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.Doc ument.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.

    Code:
    WebBrowser1.Navigate "javascript:newmsg()"
    DoEvents
    While WebBrowser1.Busy = True
    DoEvents
    Wend
    WebBrowser1.Document.All.to.Value = Tomail.Text
    WebBrowser1.Document.All.subject.Value = Subject.text
    WebBrowser1.Document.All.body.Value = Message.Text
    Here is a bit of the html code:
    Code:
                              </script></td>
                            </tr>
                          </tbody>
                        </table>
                        <div id="hiddenCompose2"
     style="position: absolute; left: 3px; top: -100px; visibility: hidden; z-index: 3;"><textarea
     rows="15" name="body" class="normal"
     style="width: 445px;"></textarea>
                        </div>
                        </td>
                      </tr>
Working...