MSFN Forum: How can I convert "VB6.PixelsToTwipsX" to C# code? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can I convert "VB6.PixelsToTwipsX" to C# code? Rate Topic: -----

#1 User is offline   whatifif 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 26-December 03

Posted 16 January 2004 - 04:41 PM

:) I got some VB code for my project.
I convert them first to VB.Net code and then try to convert to C# code.

But I got stuck in the VB6.PixelsToTwipsX(eventArgs.x).

What does the code do ? and what method in C# can be used for that ?


#2 User is offline   Datalore 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 852
  • Joined: 05-October 03

Posted 16 January 2004 - 09:13 PM

Without knowing VB.Net or C#, I can tell you that it converts Pixels to Twips. If you started with VB6 code and converted it to .Net, then it will link any code dealing with twips to the legacy class VB6.whatever. Since C# does not need a legacy class for VB6 (No way to upgrade from VB6 to C# directly), I don't think you even need that section of code. All of the twip to pixel conversions should have been done in VB.Net already. More info here.
Then again, I could be completely wrong. :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy