473,473 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.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
Nov 21 '05 #1
5 1471
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.

"Crouchie1998" <cr**********@spamcop.net> schreef in bericht
news:en**************@TK2MSFTNGP09.phx.gbl...
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

Nov 21 '05 #2
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
Nov 21 '05 #3
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.

"Crouchie1998" <cr**********@spamcop.net> schreef in bericht
news:u5**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #4
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
Nov 21 '05 #5
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.
"Crouchie1998" <cr**********@spamcop.net> schreef in bericht
news:ez**************@TK2MSFTNGP09.phx.gbl...
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

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dave | last post by:
In my form Ive got a SaveData() routine that saves changes to a DB. When I encounter an exception in the save operations, I am having trouble chaning the cursor back to the default cursor, it just...
5
by: Lespaul36 | last post by:
I have a mdi app. I need to change the cursor when I click on certain button on a form that I made into a toolbar. I tried to use cursor.current. But the cursor won't show. if I change the form...
10
by: Just Me | last post by:
Does Me.Cursor.Current=Cursors.WaitCursor set the current property of Me.Cursor to Cursors.WaitCursor And Me.Cursor.Current=Cursors.Default set the Me.Current property to something (default)...
2
by: Alex | last post by:
In the code below, clicking on the button ButtonChangeCursor changes the form's cursor to a WaitCursor. Clicking the button ButtonRestoreCursor changes the form's cursor back to its original...
2
by: Jim Frazer | last post by:
Hi, I'm working on an application in C# that will allow the user to create simple CAD drawings on a CEPC system. I would like to be able to change the cursor shape depending on the drawing mode...
7
by: Academic | last post by:
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor...
15
by: Larry Bud | last post by:
I rarely crosspost, but this affects both ASP and Javascript REALLY odd bug that I ran across in ASP 3.0. I have an input type of file, user clicks browse, then places his cursor in the...
0
debasisdas
by: debasisdas | last post by:
RESTRICTIONS ON CURSOR VARIABLES ================================= Currently, cursor variables are subject to the following restrictions: Cannot declare cursor variables in a package spec. ...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.