dcsimg
Results 1 to 5 of 5

Thread: PixelsToTwipsX

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2011
    Posts
    668

    PixelsToTwipsX

    Hi

    How to write below code VB6.PixelsToTwipsX(TheForm.Left) in vb.net

    Thanks

  2. #2
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,317

    Re: PixelsToTwipsX

    Moved to .Net forums. You're more likely to get an answer here.
    You can depend upon the Americans to do the right thing. But only after they have exhausted every other possibility - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  3. #3
    Fanatic Member
    Join Date
    Feb 2003
    Posts
    721

    Re: PixelsToTwipsX

    Vb.net doesn't support twips. What are you trying to do?

  4. #4
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    5,333

    Re: PixelsToTwipsX

    The Form's Left property was in Twips in VB6, so it looks like you probably had a function to convert the pixels value returned from an API call into Twips to set the Form's Left property?

    As Peter is saying, the Form's Left property in VB.Net is in pixels, so you don't need to convert pixels to twips to set the Left property. You probably have an unneeded function, if you're porting VB6 code to VB.Net.

  5. #5
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    5,333

    Re: PixelsToTwipsX

    Looks like this has been discussed in another Jagjit thread, so this thread is unnecessary now, i.e. it is redundant.
    http://www.vbforums.com/showthread.php?877493-Grid

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width