Filename Under Cursor

C

Crouchie1998

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.GetType(), "MyCursor.cur")

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
 
P

Peter Proost

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
 
C

Crouchie1998

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
 
P

Peter Proost

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
 
C

Crouchie1998

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
 
P

Peter Proost

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
 

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

Top