|
-
Dec 28th, 2010, 10:31 PM
#1
Thread Starter
New Member
Webbrowser and Highlighting Objects
I'll use vbforums.com as an example. I'm trying to "highlight" objects in the webbrowser (not text, but objects) control. For example, let's say I want to highlight the input vb_login_username in the webbrowser control, how would I do it? I want to highlight or do something to vb_login_username so that it'll stand out. My main goal of this program is to actually highlight and grab the input name of what the user clicks on. So let's say the user clicks on the input box vb_login_username, it will grab the name of that input box (vb_login_username) and highlight it in the webbrowser control.
The source of vbforums.com:
Code:
<td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">User Name</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
</tr>
<tr>
I was thinking of doing this by grabbing the source of the webbrowser control then editing the html code of the source to make the object I want to stand out then displaying the output in the webbrowser control again. Is there a better way of doing this? I don't think my way is a good way of doing this and I'm not sure how I would detect which objects the user has clicked.
I've been searching google for awhile and no luck and I'm pretty much stuck, so any help or suggestion would be great. thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|