PC Review


Reply
 
 
Mark Raschi
Guest
Posts: n/a
 
      21st Aug 2003
Hello all,

Does anyone know of the best way to translate world coordinates to client
coordinates. For example when i record the mouseposition it is in world
coordinates. What if i want it in client coordinates.

Thanks,

Mark


 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      21st Aug 2003
Mark,
There are a number of methods you need, depending on what coordinate space
you are in and which one you are going to.

Control.PointToClient
Control.PointToScreen

Control.RectangleToClient
Control.RectangleToScreen

Graphics.TransformPoints
Matrix.TransformPoints

Hope this helps
Jay

"Mark Raschi" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello all,
>
> Does anyone know of the best way to translate world coordinates to client
> coordinates. For example when i record the mouseposition it is in world
> coordinates. What if i want it in client coordinates.
>
> Thanks,
>
> Mark
>
>



 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      21st Aug 2003
If you are in a form, simply use Me.PointToClient.

--
Happy to help,
-- Tom Spink
((E-Mail Removed))

"Go down with your server"

http://dotnetx.betasafe.com >> On The Mend

Please respond to the newsgroup,
so all can benefit


"Mark Raschi" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hello all,
>
> Does anyone know of the best way to translate world coordinates to client
> coordinates. For example when i record the mouseposition it is in world
> coordinates. What if i want it in client coordinates.
>
> Thanks,
>
> Mark
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert point coordinates -> pixel coordinates Zorro Microsoft Excel Programming 1 1st Jun 2006 03:26 AM
Simple way to convert UTM ED50 coordinates to decimal coordinates? Dan Microsoft Excel Programming 8 11th Jul 2004 04:54 PM
Simple way to convert UTM ED50 coordinates to decimal coordinates? Dan Microsoft Excel Misc 10 11th Jul 2004 04:54 PM
Transformation of World coordinates to screen coordinates Bruce Schechter Microsoft Dot NET Framework Forms 2 8th Mar 2004 08:29 PM
Converting MouseDown Coordinates to Chart Point Coordinates Steve Microsoft Excel Programming 3 2nd Dec 2003 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 AM.