code_junkie

Image Misalignment in Visual Studio application

Nov 10th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Me.PictureBoxIcon.Width = Me.PictureBoxIcon.Image.Width
  2. Me.PictureBoxIcon.Height = Me.PictureBoxIcon.Image.Height
  3.  
  4. Dim loc As New Point
  5. loc.X = Me.PictureBoxIcon.Location.X
  6. loc.Y = Me.PictureBoxIcon.Location.Y + Me.PictureBoxIcon.Height
  7. Me.PictureBoxAbout.Location = loc
  8. Me.PictureBoxAbout.Width = Me.PictureBoxAbout.Image.Width
  9. Me.PictureBoxAbout.Height = Me.PictureBoxAbout.Image.Height
  10.  
  11. images[0].Location = new Point(0,0);
  12. for (int i = 1; i < images.Length; i++)
  13. {
  14. images[i].Location = new Point(images[i - 1].Location.X + images[i - 1].Width, 0);
  15. }
Add Comment
Please, Sign In to add comment