I'm using VS 2005.
When user selects a image from the FileListBox, the code is
PictureBox.ImageLocation = sFullPath
PictureBox is set to AutoSize. When the newly loaded image is smaller
than the panel size, I want to center it within the panel by
calculating and move the box to a location other than (0,0). The
problem is that when retrieving the current box size
(PictureBox.Width/Height), it returns the previously auto sized
dimensions (base on the previously loaded image). Seems like I need to
run a "wait" function to wait for the new image to be fully loaded AND
the picbox's done auto sizing to get the correct size. How do I do
that?