Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Arrange control array elements!

Greetings Experts,

How to tile 15 pictureboxes in a control array on the screen (5 pictureboxes per row, 3 such rows)? I am not able to write the exact code in form_resize.

Please help me out urgently.

cOdEdRiLLeR
     [*_*]
0
codedriller
Asked:
codedriller
1 Solution
 
anvCommented:
0
 
mmusanteCommented:
Try this ...

Private Sub Form_Resize()
   
    Dim x As Single, y As Single, W As Single, H As Single
    Const R = 3
    Const C = 5
   
    W = Me.ScaleWidth / C
    H = Me.ScaleHeight / R
   
    For x = 0 To C - 1
        For y = 0 To R - 1
            Picture1(x + y * C).Move x * W, y * H, W, H
        Next
    Next
   
End Sub
0
 
codedrillerAuthor Commented:
Thanks a million mmusante !!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now