Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Can't fit this f***ing PictureBoxes in my form!!!

This topic is 6940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It''s driving nuts!!! HELP!! I can''t stand that! I''m trying to make a function in VB that wil give me how much same PictureBoxes can be arranged horizontaly and Verticaly in my Form with a standard space bettween them! I tried something like that! Private Function GetFitBoxesNo(FBoxPos As Integer, FormsLen As Integer, BoxesLen As Integer) As Integer i = 0 Do If FormsLen <= (FBoxPos + BoxesLen) + (Space + BoxesLen) * i Then Exit Do i = i + 1 Loop GetFitBoxesNo = i End Function When I was putting for FormsLen=form1.height, it was giving me wrong results! So, I tried ScaleHeight that seemed to work! But When I wanted to see how much could fit in a maximized Form(depending to the screen resolution), I used Screem.Height, but it keeps giving me one more PictueBox! What''s so wierd with this ScaleWidth thing! Please give me a hand here or else....I''ll kill myself!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!