Picture Box Control
See Also Properties Events Methods16GSUGW
A picture box can display a graphic from a bitmap It displays only as much of the graphic as fits into the rectangle that you've drawn with the picture box tool., icon , or metafile .
You can also use a picture box to group option buttons and to display output from graphics methods and text written with the Print method.
To make a picture box automatically resize to display an entire graphic, set its AutoSize property to True.
To create animation or simulation, you can manipulate the graphics properties and methods in your code. Graphics properties and events are useful for run-time print operations, such as modifying the format of a screen form for printing.
A picture box can also act as a destination link in a DDE conversation.
The picture box is the only standard Visual Basic control that you can place in the client area You can use it to group controls at the top or bottom of the client area to create a toolbar or status bar. of an MDI form .
Graphics properties are indicated with an asterisk (*).'
Align *FillStyle LinkTimeout
*AutoRedraw *FontBold LinkTopic
AutoSize *FontItalic MousePointer
BackColor *FontName Name
BorderStyle *FontSize Parent
*ClipControls *FontStrikethru Picture
*CurrentX *FontTransparent *ScaleHeight
*CurrentY *FontUnderline *ScaleLeft
DataField *ForeColor *ScaleMode
DataSource hDC *ScaleTop
DragIcon Height *ScaleWidth
DragMode HelpContextID TabIndex
*DrawMode hWnd TabStop
*DrawStyle Image Tag
*DrawWidth Index Top
Enabled Left Visible
*FillColor LinkItem Width
Change KeyPress LostFocus
Click KeyUp MouseDown
DblClick LinkClose MouseMove
DragDrop LinkError MouseUp
DragOver LinkNotify Paint
GotFocus LinkOpen Resize
Graphics methods are indicated with an asterisk (*).
*Circle LinkRequest Refresh
*Cls LinkSend *Scale
Drag Move SetFocus
*Line *Point *TextHeight
LinkExecute *Print *TextWidth
LinkPoke *PSet ZOrder
Drawing a Control
Chapter 3, "Creating and Using Controls"
Chapter 15, "Creating Graphics for Applications"