Link to home
Start Free TrialLog in
Avatar of aplelois
aplelois

asked on

text not added

hello,
can someone please tell me why this is not working?

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MainWebBrowser.Document.DomDocument.Forms("Form").All("MusicText").Value = TextBox1
    End Sub

and I have this in my TextBox1
background-color:#e2ebfd;
background-attachment: fixed;
background-position:top center;
background-repeat:yes-repeat;
border-color:000000;
<tr align="center">A1</tr>
border-width:5px ;
border-style: solid;
Avatar of Nandakumar Sakthivel
Nandakumar Sakthivel
Flag of United States of America image

Hi,
The problem is not stated clearly
Can check this way("TextBox1.Text")
   MainWebBrowser.Document.DomDocument.Forms("Form").All("MusicText").Value = TextBox1.Text



Thanks,
Nanda
Avatar of aplelois
aplelois

ASKER

I mean is working but is pasting this in ("MusicText")

System.Windows.Forms.TextBox, Text: background-color:#e2ebfd;
background-at...
ASKER CERTIFIED SOLUTION
Avatar of Manish Chhetia
Manish Chhetia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial