Web Browser how to programmatically select text on the webpage

  • Thread starter Thread starter Riyaz
  • Start date Start date
R

Riyaz

Hi all
I have a web browser on the form, there is a default url which gets
loaded when it starts. There is a particular label which i want to get
selected/highlighted automatically when the document is loaded.
I am using the following code but it does not work.
Can any one tell me where i am wrong.

Me.WebBrowser1.Document.All("smap2").SetAttribute("SELECTED", "true")

N.B. smap2 is the id of the label


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top