Microsoft Visual Basic Picture Box Control


The Picture Box Control

 

If you applied everything you knew about the Image control to the Picture Box control, you could use the Picture Box control. The Picture Box control works almost exactly like the Image control, with these exceptions:

 

The Picture Box control supports more properties, events, and methods than the Image control.

 

The Picture Box control consumes more resources than the Image control and, therefore, is not as efficient.   

 

The Picture Box control automatically clips the image if the image will not fit within the Picture Box control's borders that you set when you placed the Picture Box control.



Possible Align property values


0-None 

The Picture Box control appears where you place it in the Form window.


1-Align

Top The Picture Box control appears at the top of the Form window.


2-Align

Bottom The Picture Box control appears at the bottom of the Form window.


3-Align

Left The Picture Box control appears at the left of the Form window.


4-Align

Right The Picture Box control appears at the right of the Form window.