Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

How can I convert "VB6.PixelsToTwipsX" to C# code?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
whatifif

whatifif

    Newbie

  • Member
  • 11 posts
:) 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 ?


How to remove advertisement from MSFN

#2
Datalore

Datalore

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 852 posts
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. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN