Solved

text not added

Posted on 2006-07-15
3
182 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now