Click here to Skip to main content
16,010,553 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

I am trying to convert a DialogUnit value to a Pixel value. In particular, I have a Rectangle(left, top, width, height) where all these four values needs to be converted into its equivalent pixel values. Could you please suggest how can I do that?

Thanks.
Posted

see here[^]

Found via Google "dialog units pixel conversion" - it's the first result. Try using search engines before posting here - it will really annoy some people if you don't.
 
Share this answer
 
Take a look at this[^]. It will involve P/Invoke to make use of it and you may find that someone has already done the work for you if you search here[^]. I don't know if the solution is in there, you can't expect me to do all the work for you. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900