Solved

text not added

Posted on 2006-07-15
3
186 Views
Last Modified: 2010-04-23
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;
0
Comment
Question by:aplelois
3 Comments
 
LVL 6

Expert Comment

by:Nandakumar Sakthivel
ID: 17113899
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
0
 

Author Comment

by:aplelois
ID: 17113907
I mean is working but is pasting this in ("MusicText")

System.Windows.Forms.TextBox, Text: background-color:#e2ebfd;
background-at...
0
 
LVL 6

Accepted Solution

by:
manch earned 500 total points
ID: 17114245

u have not written TextBox1.Text u have to write the property name with it
probably there is the problem:

so ur new staements will be like :

MainWebBrowser.Document.DomDocument.Forms("Form").All("MusicText").Value = TextBox1.Text

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question