Results 1 to 10 of 10

Thread: VB 2010: Need help with mouse event

  1. #1
    Member
    Join Date
    Jun 12
    Posts
    61

    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.

  2. #2
    PowerPoster
    Join Date
    Feb 12
    Location
    West Virginia
    Posts
    4,978

    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.

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,250

    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  4. #4
    Member
    Join Date
    Jun 12
    Posts
    61

    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.

  5. #5
    Angel of Code Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,250

    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  6. #6
    Member
    Join Date
    Jun 12
    Posts
    61

    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/leetcheatscn@gmail.com

    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.

  7. #7
    Angel of Code Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,250

    Re: VB 2010: Need help with mouse event

    Its an EXE....do you have the source code for it ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  8. #8
    Member
    Join Date
    Jun 12
    Posts
    61

    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.

  9. #9
    Angel of Code Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,250

    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  10. #10
    Member
    Join Date
    Jun 12
    Posts
    61

    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
  •