|
-
Jun 18th, 2012, 11:23 PM
#1
Thread Starter
Lively Member
VB 2010: Need help with mouse event
I am programming an application where one feature is going to be a checkbox, when checked, anything the mouse hovers over will extract the id, and name from.
Does anyone know the code for this? It will be greatly appreciated
or the line(s) for the webbrowser1.this.this etc
Thanks.
-
Jun 19th, 2012, 01:31 AM
#2
Re: VB 2010: Need help with mouse event
I think you will need to provide a bit more detail about what you are trying to do.
-
Jun 19th, 2012, 01:35 AM
#3
Re: VB 2010: Need help with mouse event
Extract ID and Name ? What exactly do you mean ? As DataMiser said...please provide a more information.
-
Jun 19th, 2012, 05:14 PM
#4
Thread Starter
Lively Member
Re: VB 2010: Need help with mouse event
EDIT: //no checkbox
I have form1 with a webbrowser1 that I would like to have this function:
When my mouse cursor is on an html element in webbrowser1, I would like it to show string(text) information about that html element in a text box.
If I hover my mouse on googles submit button, my text box should say btnK
If im not hovering over googles submit button, my text box should say nothing, or tell me
a different element im hovering over
Script Look-a-Like example:
(not actual code, or implication of what the code should look like)
dim example = webbrowser1.document.getelementbyid(id)
if mouse ison example then
textbox1.txt = example
end if webbrowser1.document.getelementbyid(id) = <>
else textbox1.txt = ""
This function is very hard to find any information on anywhere on the internet, hope yall can help with it.
Thanks again, Chris.
Last edited by VBbbq; Jun 19th, 2012 at 05:38 PM.
-
Jun 20th, 2012, 12:08 AM
#5
Re: VB 2010: Need help with mouse event
I'd check the Webbrowser's events to see there is an event that can facilitate this. I've never used that control so I don't know but its where I'd look first.
-
Jun 20th, 2012, 04:55 PM
#6
Thread Starter
Lively Member
Re: VB 2010: Need help with mouse event
Thanks for responding, Ive uploaded an example application that will show what im attempting to accomplish.
Link: http://www.mediafire.com/?i637bl35ul26njv
Its called "Web Id Extractor" and was created by doogins/[email protected]
I want the application im developing to have these similar features
Hover Over Id, and Hover Over Name
Thanks.
Last edited by VBbbq; Jun 20th, 2012 at 05:16 PM.
-
Jun 21st, 2012, 02:44 PM
#7
Re: VB 2010: Need help with mouse event
Its an EXE....do you have the source code for it ?
-
Jun 22nd, 2012, 03:37 PM
#8
Thread Starter
Lively Member
Re: VB 2010: Need help with mouse event
lol, nope.
Id have what i need if i did 
I wouldnt know how to decompile the file + its illegal to do so etc
heres a video of it: http://www.youtube.com/watch?v=eTE-muWIEwk
Thanks for responding.
-
Jun 22nd, 2012, 04:30 PM
#9
Re: VB 2010: Need help with mouse event
Oh...I asked because it would have given a clue as to how it was achieved. I don't really know much about this particular type of thing but I've seen other threads around here about similar things. Try searching around the forums or wait and maybe someone who knows better would come around and answer.
-
Jun 24th, 2012, 05:01 PM
#10
Thread Starter
Lively Member
Re: VB 2010: Need help with mouse event
Im thinking its in the web browser events like you said, if I come across it ill update. 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
|