473,396 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Exact (X, Y) position of a file on the desktop

Anybody know how to get the exact (X, Y) position of a file on the
desktop?

Feb 14 '06 #1
3 1515
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Anybody know how to get the exact (X, Y) position of a file on the
desktop?

Feb 14 '06 #2
Yes, I mean an icon on the desktop...

Kevin Spencer skrev:
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Anybody know how to get the exact (X, Y) position of a file on the
desktop?


Feb 14 '06 #3
Hi Henrick,

This is not going to be easy, because it will require some Windows API work
or other Interop to do. Basically, everything you need is in the Windows
Shell, and that's not available through any existing .Net namespaces. Here
are a couple of good references for you:

The MSDN Windows Shell Programmer's Guide:
http://msdn.microsoft.com/library/de...hell_intro.asp

The Code Project - C++ Shell Extension Programming. Lots of articles and
sample code:
http://www.codeproject.com/shell/

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Yes, I mean an icon on the desktop...

Kevin Spencer skrev:
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
> Anybody know how to get the exact (X, Y) position of a file on the
> desktop?
>

Feb 14 '06 #4

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

Similar topics

1
by: bmgz | last post by:
I am have made a simple script that moves all desktop clutter (ie files that are not *.lnk) to a specified folder eg. c:\myhome\mydocs\desktopdebris\2003-12-16 ...
4
by: Luigi | last post by:
Hi, even if I have read more and more about the argoment (also in the W3C site), I still can't exactly position my boxes on the pages. I would to know what is the EXACT displacement between an...
4
by: Arif | last post by:
My programs searches the header of input barcode in index file. Get the record position next to Barcode header. Then moves the file pointer of products file to reach that record. My products...
1
by: gce | last post by:
I like to declare my label in the code : dim lblTotaal as new label And then I like to place it on an exact position. When I type the following in the HTML part it works, but I like to have my code...
2
by: Tom McL. | last post by:
I have a program I am writing on my desktop computer with a screen resolution of 1024 by 768 when I run the program on my laptop with a screen resolution of 1280 by 768. the size and position of...
3
by: harvie wang | last post by:
Hi, I create a system mouse hook, to get mouse position and click events. use GetDesktopWiindow and WindowFromPoint(x,y) to get window handle in my hook proc. Click mouse on desktop window and...
1
by: Hamed | last post by:
Hello Two questions about positioning: When I run my MDI application developed by VS.NET 2003, the MDI window is opened in a new place and after some run again and again, it opens in a...
0
by: Bill nguyen | last post by:
Below is the config of a 2-monitor desktop. Device Name: \\.\DISPLAY1 Bounds: {X=1152,Y=0,Width=1152,Height=864} Primary Screen: False Device Name: \\.\DISPLAY2 Bounds:...
3
by: Mark Poppers | last post by:
Assume I position a button on a Form on position (x,y)=20,75pixel Where (in which file) is this information stored ? Marl
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...

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.