Solved

text not added

Posted on 2006-07-15
3
181 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
Comment Utility
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
Comment Utility
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
Comment Utility

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

14 Experts available now in Live!

Get 1:1 Help Now