Community discussion forum

Set Maximum/Minimum form size

This is a comment thread discussing Set Maximum/Minimum form size
  • 9 years ago

    This thread is for discussions of Set Maximum/Minimum form size.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 6 years ago

    i got an error message when i tried to run the code. entered it like i said, with a module and from code


    chad

  • 6 years ago

    What error do you get?

  • 6 years ago

    i was using this code to try to learn subclassing, but there seems to be some errors in the syntax


    Code:

           nWidthPixels = Screen.Width Screen.TwipsPerPixelX
           nHeightPixels = Screen.Height Screen.TwipsPerPixelY


    should this be


    Code:

           nWidthPixels = Screen.Width * Screen.TwipsPerPixelX
           nHeightPixels = Screen.Height * Screen.TwipsPerPixelY


    ?


    and this;

    Code:
    .ptMaxSize.x = nWidthPixels - (nWidthPixels 4)


    should it be

    Code:
    .ptMaxSize.x = nWidthPixels - (nWidthPixels*4)


    ?


    in other words are the multiplication signs missing? there are more errors which might be the same thing


    stevesoft

  • 5 years ago

    This code works fine for me. Thank you. That's all that I need for my Picture Viewer project.

  • 5 years ago

    Hummmm.....  This code looks surprisingly like the code in the GETMINMAXINFO example at  http://www.mvps.org/vbvision/  Right down to the exact same comments!  Coincidence?  You be the judge!

Post a reply

Enter your message below

Sign in or Join us (it's free).