Filename Under Cursor

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Crouchie1998

    Filename Under Cursor

    How do I get the filename of the file under the cursor without clicking on
    it & returning it to my application using VB.NET 2003?

    Example:

    Imagine the 'MyCursor.cur' is embedded

    PictureBox MouseDown Event:
    --------------------------------

    Me.Cursor = New Cursor(Me.GetTy pe(), "MyCursor.c ur")

    PictureBox MouseUp Event:
    -----------------------------

    Get Filename of file here <----

    Me.Cursor = Cursors.Default

    Your help would be grateful in this matter

    Crouchie1998
    BA (HONS) MCP MCSE


  • Peter Proost

    #2
    Re: Filename Under Cursor

    I think you nee to be more specific with your question, where are the
    filenames? Or do you want to show the filename of the image loaded in the
    picturebox?

    Greetz Peter

    --
    Programming today is a race between software engineers striving to build
    bigger and better idiot-proof programs, and the Universe trying to produce
    bigger and better idiots. So far, the Universe is winning.

    "Crouchie19 98" <crouchie1998@s pamcop.net> schreef in bericht
    news:enZJXB2WFH A.1404@TK2MSFTN GP09.phx.gbl...[color=blue]
    > How do I get the filename of the file under the cursor without clicking on
    > it & returning it to my application using VB.NET 2003?
    >
    > Example:
    >
    > Imagine the 'MyCursor.cur' is embedded
    >
    > PictureBox MouseDown Event:
    > --------------------------------
    >
    > Me.Cursor = New Cursor(Me.GetTy pe(), "MyCursor.c ur")
    >
    > PictureBox MouseUp Event:
    > -----------------------------
    >
    > Get Filename of file here <----
    >
    > Me.Cursor = Cursors.Default
    >
    > Your help would be grateful in this matter
    >
    > Crouchie1998
    > BA (HONS) MCP MCSE
    >
    >[/color]


    Comment

    • Crouchie1998

      #3
      Re: Filename Under Cursor

      The filename could be on the Desktop or in any directory & not in a
      listview/listbox etc. The file extension I am interested in is MDB, so,
      after only want to return the filenames of MDB files.

      If you know the SPY++ program that came with VS 6 then the find window tool
      has a magnifying glass. Just imagine you used that magnifying glass to mouse
      over a Microsoft Access file. I want that filename to be returned to my
      application, but if the magnifying glass moused over a different file, doc
      for example it would be ignored.

      Does this make it a little clearer? It's not going to be a simple answer
      though.

      Crouchie1998
      BA (HONS) MCP MCSE


      Comment

      • Peter Proost

        #4
        Re: Filename Under Cursor

        If get it right, you for example want someone who's using your app to
        minimize your app then he/she select's a mdb file and that mdb fileinfo is
        send to your app?
        If that's what you want to do I'm afraid I can't help you.

        Greetz Peter

        --
        Programming today is a race between software engineers striving to build
        bigger and better idiot-proof programs, and the Universe trying to produce
        bigger and better idiots. So far, the Universe is winning.

        "Crouchie19 98" <crouchie1998@s pamcop.net> schreef in bericht
        news:u52mf24WFH A.3488@tk2msftn gp13.phx.gbl...[color=blue]
        > The filename could be on the Desktop or in any directory & not in a
        > listview/listbox etc. The file extension I am interested in is MDB, so,
        > after only want to return the filenames of MDB files.
        >
        > If you know the SPY++ program that came with VS 6 then the find window[/color]
        tool[color=blue]
        > has a magnifying glass. Just imagine you used that magnifying glass to[/color]
        mouse[color=blue]
        > over a Microsoft Access file. I want that filename to be returned to my
        > application, but if the magnifying glass moused over a different file, doc
        > for example it would be ignored.
        >
        > Does this make it a little clearer? It's not going to be a simple answer
        > though.
        >
        > Crouchie1998
        > BA (HONS) MCP MCSE
        >
        >[/color]


        Comment

        • Crouchie1998

          #5
          Re: Filename Under Cursor

          No, you are wrong.

          If you have read my previous message you will see that when I let go of the
          magnifying glass over an MDB file it puts the filename in my application.
          That is why I mentioned the SPY++ program

          I don't mean to be rude, but I think this question is way beyond your
          knowledge

          Crouchie1998
          BA (HONS) MCP MCSE


          Comment

          • Peter Proost

            #6
            Re: Filename Under Cursor

            Hi I know, that's why I stated before:

            I'm afraid I can't help you. And you weren't rude, you were right ;-)

            Greetz Peter & good luck

            --
            Programming today is a race between software engineers striving to build
            bigger and better idiot-proof programs, and the Universe trying to produce
            bigger and better idiots. So far, the Universe is winning.
            "Crouchie19 98" <crouchie1998@s pamcop.net> schreef in bericht
            news:ezCrH75WFH A.1384@TK2MSFTN GP09.phx.gbl...[color=blue]
            > No, you are wrong.
            >
            > If you have read my previous message you will see that when I let go of[/color]
            the[color=blue]
            > magnifying glass over an MDB file it puts the filename in my application.
            > That is why I mentioned the SPY++ program
            >
            > I don't mean to be rude, but I think this question is way beyond your
            > knowledge
            >
            > Crouchie1998
            > BA (HONS) MCP MCSE
            >
            >[/color]


            Comment

            Working...