The S309PictureBox.ocx Version 2.7 provides a PictureBox ActiveX control that can:
The S309PictureBox maintains the picture being displayed as an image, which is not necessarily the same width and/or height as the S309PictureBox. You can have the S309PictureBox automatically size itself to the width and height of the image or have the image stretched or shrunk to the size of the S309PictureBox when displayed. All drawing and pixel manipulation is done on the image.
This control will not expire.
Properties | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Values | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AnimationAvailable | True|False | Returns True if animation is available for the image displayed. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AnimationInterval | 0-65535 | Sets or returns a value indicating whether the PictureBox will animate the image displayed with the PlayingCard property The AnimationInterval is in milliseconds. Setting the AnimationInterval property to a value greater than 0 will enable the animation. 1000=one second. Currently only available with the PlayingCard property set to 62 (Haunted Castle), 63(Bubbling Fish), 64 (Cheating Hand), 65(Helpful Robot), with the WildCard property set to True, or with the PlayingCard property set to any of the face cards or 53 (the Joker). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Appearance | -4, -3, -2, -1, 0, 1, 2, 3, 4 | Sets or returns a value indicating the appearance of the PictureBox. The Appearance
property has no effect if BorderStyle property is not set to 1.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AutoRefresh | True|False | Sets or returns a value indicating whether the PictureBox will automatically refresh after image manipulation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AutoSize | True|False | Sets or returns a value indicating whether the PictureBox will automatically change to the size of the image being displayed.# | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BackColor | color | Sets or returns the background color of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BitmapOnClipboard | True|False | Returns True if there is a bitmap image on the clipboard. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BorderStyle | 0, 1 | Sets or returns a value indicating the border style of the PictureBox. Can
be used with
the Appearance property to display 3D borders.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Caption | string | Sets or returns the caption to be used when in command button mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Center | 0, 1, 2, 3 | Sets or returns a value indicating whether the PictureBox will automatically center
the image being displayed in the PictureBox.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Clip | True|False | Sets or returns a value indicating whether the image should be clipped when it is loaded when used with the hBitmap, Picture, PlayingCard, ResourceBitmapID properties. Only a portion of the image is kept and it is not resized. Used with the ClipHeight, ClipLeft, ClipTop, and ClipWidth FillColor properties. You can increase the size of the overall image without resizing the existing image. The new area not covered by the clipped existing image will be filled with the color in the FillColor property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClipHeight | integer | Sets or returns the number of pixels from top edge of original image to bottom edge of image to clip. Used with the ClipImage method, Clip, ClipLeft, ClipTop, and ClipWidth properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClipLeft | integer | Sets or returns the number of pixels from left edge of original image to left edge of image to clip. Used with the ClipImage method, Clip, ClipHeight, ClipTop, and ClipWidth properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClipTop | integer | Sets or returns the number of pixels from top edge of original image to top edge of image to clip. Used with the ClipImage method, Clip, ClipHeight, ClipLeft, and ClipWidth properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClipWidth | integer | Sets or returns the number of pixels from left edge of original image to right edge of image to clip. Used with the ClipImage method, Clip, ClipHeight, ClipLeft, and ClipTop properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CommandButton | True|False | Sets or returns the whether the S309PictureBox control should behave like a command button. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CommonBitmapID | integer | Sets or returns a value indicating which Common Controls Bitmap should or is being
shown. Set CommonBitmapType property before setting CommonBitmapID
property. Setting this property will cause the image to be loaded and displayed in the
PictureBox.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CommonBitmapType | integer | Sets or returns a value indicating which Type Common Controls bitmap should or is
being shown. Set CommonBitmapType property before setting CommonBitmapID
property.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FillColor | color | Sets or returns the fill color to be used when manipulating an image in the PictureBox. This property defaults to the color white. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FillStyle | 0, 1 | Sets or returns the fill style to be used when manipulating an image in the
PictureBox.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FocusRect | True|False | Sets or returns whether a focus rectangle should be drawn when the S309PictureBox has focus. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FocusRectIndentBottom | integer | Sets or returns the number of pixels the focus rectangle will be indented from the bottom edge of the control. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FocusRectIndentLeft | integer | Sets or returns the number of pixels the focus rectangle will be indented from the left edge of the control. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FocusRectIndentRight | integer | Sets or returns the number of pixels the focus rectangle will be indented from the right edge of the control. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FocusRectIndentTop | integer | Sets or returns the number of pixels the focus rectangle will be indented from the top edge of the control. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontBold | True|False | Sets or returns the BOLD setting of the font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontItalic | True|False | Sets or returns the ITALIC setting of the font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontName | string | Sets or returns the name of the font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontSize | integer | Sets or returns the point size setting of the font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontStrikethru | True|False | Sets or returns the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontTransparent | True|False | Sets or returns whether the text background will be transparent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontUnderline | True|False | Sets or returns the UNDERLINE setting of the font.. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FontWeight | integer | Sets or returns the FONTWEIGHT setting of the font.. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ForeColor | color | Sets or returns the foreground color to be used when drawing text in the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hBitmap | integer | Sets or returns the HBITMAP of the image. This should only be used to set the hBitmap property of one S309PictureBox to the hBitmap property of another S309PictureBox. This is used to copy the image from one S309PictureBox to another S309PictureBox. Setting this property will cause the image to be loaded and displayed in the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Height | integer | Sets or returns the number of pixels from the top edge to the bottom edge of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hFont | integer | Sets or returns the HFONT to be used when drawing text. This should only be used to set the hFont property of one S309PictureBox to the hFont property of another S309PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HScrollPosition | integer | Sets or returns the horizontal scrollbar position. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hWnd | integer | Returns the hWnd of the S309PictureBox control. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageBitsPerPixel | integer | Sets or returns a value indicating the number of bits per pixel (color depth) of the
image.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageHeight | integer | Returns the height of the image from the file. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageLoadBitsPerPixel | integer | Sets or returns a value indicating the number of bits per pixel (color depth) of the
image to use when loading images with the Picture
property. (If ImageLoadBufferSize = 0, ImageLoadBitsPerPixel
might be ignored.)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageLoadBufferSize | integer | Returns or sets the buffer size used when loading an image with the Picture property. (Default: ImageLoadBufferSize = 0, which will use the height and width from the file instead of ImageLoadMaxHeight and ImageLoadMaxWidth properties and will attempt to use the bits per pixel value from the file instead of ImageLoadBitsPerPixel property when loading images with the Picture property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageLoaded | True|False | Returns True if the PictureBox currently has an image loaded. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageLoadMaxHeight | integer | Return or sets the maximum image height when loading images with the Picture property. (If ImageLoadBufferSize = 0, ImageLoadMaxHeight will be ignored.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageLoadMaxWidth | integer | Return or sets the maximum image width when loading images with the Picture property. (If ImageLoadBufferSize = 0, ImageLoadMaxWidth will be ignored.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ImageWidth | integer | Returns the width of the image from the file. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Invert | True|False | Sets or returns a value indicating whether the colors of the image will be inverted when loaded into the PictureBox when used with the hBitmap, Picture, PlayingCard, ResourceBitmapID properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Left | integer | Sets or returns the number of pixels from the left edge of the output window to the left edge of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mirror | 0, 1, 2, 3 | Sets or returns a value indicating whether the picture will be mirrored in the
PictureBox when loading the image with the hBitmap, Picture, PlayingCard,
ResourceBitmapID properties or the MirrorImage method.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MouseMovePoints | 0, 1, 2 | Sets or returns the mode of dealing with extra mouse move points.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MouseMovePointsCount | integer | Returns the number of mouse move points stored for the DrawMouseMoveLines, DrawMouseMoveLinesEx, and GetMouseMovePoint methods. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | string | Returns the name of the PictureBox. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OnToolbar | True|False | Sets or returns a value indicating whether the S309PictureBox should place itself on the NS Basic Toolbar. (NS Basic Only) Does not work with Pocket PC's yet. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Overlay | True|False | Sets or returns a value indicating whether the image being loaded should be overlaid on the existing image when used with the hBitmap, Picture, PlayingCard, ResourceBitmapID properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverlayLeft | integer | Sets or returns the number of pixels from left edge of original image to left edge of new image. Used with the Overlay and OverlayTop properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverlayTop | integer | Sets or returns the number of pixels from top edge of original image to top edge of new image. Used with the Overlay and OverlayLeft properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverlayTransparentColor | -1, color | Returns or sets the color to be used as a transparent color when overlaying the image. No transparent color will be used if this property is set to -1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PenFillStyle | 0, 1 | Sets or returns the pen fill style to be used when manipulating an image in the
PictureBox and the PenStyle property = 2.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PenStyle | 0, 1, 2 | Sets or returns the pen style to be used when drawing a line with a width of 1. If the
DrawWidth property > 1 then the PenStyle
property is assumed to be 1.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Picture | string | Set or Returns a string with name of image file. Setting this property will cause the image to be loaded and displayed in the PictureBox. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pixel(x, y) | color | Set or returns the color of the pixel in the image at the position specified by x and y. Note: The x and y are coordinates on the image which may or may not correspond to the coordinates of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PlayingCard | integer | Sets or returns the numeric id of a playing card to display. Setting this property
will cause the image to be loaded and displayed in the PictureBox.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resize | True|False | Sets or returns a value indicating the whether the image will be resized (stretched or shrunk) when loading the image with the hBitmap, Picture, PlayingCard, ResourceBitmapID properties. Used with the ResizeHeight and ResizeWidth properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResizeHeight | integer | Sets or returns the number of pixels from top edge to bottom edge of the resized image. Used with the ResizeImage method, Resize and ResizeWidth properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResizeWidth | integer | Set or returns the number of pixels from left edge to right edge of the resized image. Used with the ResizeImage method, Resize and ResizeHeight properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResourceBitmapID | integer | Sets or returns the numeric resource id of a bitmap in an executable to display. Set the ResourceFile property before setting this property. Setting this property will cause the image to be loaded and displayed in the PictureBox. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResourceFile | string | Sets or returns a string with name of resource file (.dll, .ocx, .cpl, etc...) in which to get the bitmap resource from. Set the ResourceBitmapID property after setting this property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResourceFileLoaded | True|False | Returns a value indicating the whether a resource file has been successfully loaded. Set the ResourceBitmapID or ResourceIconID properties before reading this property. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResourceIconID | integer | Sets or returns the numeric resource id of an icon in an executable to display. Set the ResourceFile property before setting this property. Setting this property will cause the image to be loaded and displayed in the PictureBox. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rotate | 0, 90, 180, 270 | Sets or returns a value indicating the rotation of the picture in the PictureBox when
loading the image with the hBitmap, Picture, PlayingCard,
ResourceBitmapID properties or the RotateImage method.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScaleMode | 3 | Sets or returns a value indicating the Scale Mode of the PictureBox. Currently only Scale Mode 3 is supported.. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScreenBitsPerPixel | integer | Returns a value indicating the number of bit per pixel (color depth) of the physical
screen. (Read Only)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScreenHeight | integer | Returns a value indicating the number of pixels from the top edge to the bottom edge of the physical screen. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScreenLeft | integer | Returns the number of pixels from left edge of the physical screen to left edge of the PictureBox. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScreenTop | integer | Returns the number of pixels from top edge of the physical screen to top edge of the PictureBox. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScreenWidth | integer | Returns a value indicating the number of pixels from the left edge to the right edge of the physical screen.. (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Scroll | True|False | Sets or returns a value indicating whether the image should be scrolled when it is loaded when used with the hBitmap, Picture, PlayingCard, ResourceBitmapID properties. Used with the ScrollX and ScrollY properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScrollBars | integer | Sets or returns a value indicating whether scroll bars will
be displayed on the S309PictureBox control.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScrollX | integer | Returns a value indicating the number of pixels to scroll the image horizontally.. Used with the Scroll and ScrollY properties and the ScrollImage method. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScrollY | integer | Returns a value indicating the number of pixels to scroll the image vertically.. Used with the Scroll and ScrollX properties and the ScrollImage method. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Stretch | True|False | Sets or returns a value indicating whether the PictureBox will stretch (or shrink) the display of the image to the size of the PictureBox. This will not change the size of the image, but will stretch or shrink the display of it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tag | variant | User defined. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Top | integer | Set or returns the number of pixels from the top edge of the output window to the top edge of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransparentColor | -1, color | Returns or sets the color to be used as a transparent color when displaying the image. No transparent color will be used if this property is set to -1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UseJPEGBitsPerPixel | True|False | Returns or sets a value indicating whether the BitsPerPixel value in the JPEG file should be used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Version | integer | Returns the version of the S309PictureBox (i.e. 207). (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VersionMajor | integer | Returns the major version of the S309PictureBox (i.e. 2). (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VersionMinor | integer | Returns the minor version of the S309PictureBox (i.e. 7). (Read Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Visible | True|False | Sets or returns value indicating whether the PictureBox is visible. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VScrollPosition | integer | Sets or returns the vertical scrollbar position. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
WaitCursor | True|False | Set or returns a value indicating whether the PictureBox will display a Wait Cursor while loading, mirroring, saving, or rotating the image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Width | integer | Set or returns the number of pixels from the left edge to the right edge of the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
WildCard | integer | Sets or returns a value indicating whether a "WILD" indicator should appear
on the image. This a intended to be used with the images displayed with the PlayingCard
property. The indicator can be animated with the AnimationInterval
property.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Events | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Click | Standard Click event. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DblClick | Standard Double Click event. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GotFocus GotFocusX |
Standard GotFocus event. Use GotFocusX in NS Basic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HScroll | nSBCode, bRefresh, nPos, nMove, nMin, nMax, nPage, nCX, nCY | Event called upon user scrolling. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
KeyDown | keycode, shift | Standard KeyDown event. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
KeyPress | keycode, shift | Standard KeyPress event. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
KeyUp | keycode, shift | Standard KeyUp event. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LostFocus LostFocusX |
Standard LostFocus event. Use LostFocusX in NS Basic. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MouseDown | button, shift, x, y | PictureBox is in contact with stylus or input device. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MouseMove | button, shift, x, y | Stylus or input device is moved while in contact with the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MouseUp | button, shift, x, y | Stylus is lifted from PictureBox, or input device breaks contact with PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TapAndHold | button, shift, x, y | The user has done a "tap and hold" on the PictureBox. (Pocket PC Only) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VBCEAutoSize | width, height | Called when the PictureBox control needs to resize itself and VBCE container will not let it. The Width and Height properties of the PictureBox control should be set in this event. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VScroll | nSBCode, bRefresh, nPos, nMove, nMin, nMax, nPage, nCX, nCY | Event called upon user scrolling. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Methods | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | Parameter(s) | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AboutBox | Displays the About Box for the PictureBox control. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Animate | Does the animation of the image if the AnimationAvailable property is set to True.. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CaptureScreen | Loads a copy of the physical screen into the image and displays it in the PictureBox. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ClipImage | Clips the image that is displayed in the PictureBox control using the ClipHeight, ClipLeft, ClipTop, ClipWidth, and FillColor properties. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Cls | Clears the image from the PictureBox control. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copy | Copies the image from the PictureBox control to the clipboard. Returns True if an image was copied. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CreateImage | width, height | Creates an image of the specified size and of the color specified in the FillColor property. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawCircle | x, y, radius [, color [, aspectratio]] | Draws a circle centered on x, y with a radius of radius and the aspect ratio of aspectratio. Set aspectratio to 1 for a normal circle. The circle is drawn with color color and filled in with the FillColor property. Used with FillStyle, FillColor, PenStyle, and PenFillStyle properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawIcon | file [,[id] [,largesize]] | Draws an icon from a file (an executable, a dll, or an ico file). id should be 0 or the resource id of the icon. largesize should be true if you want to use the large icon from the resource. Calling this method will cause the icon to be loaded and displayed in the PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawLine | fromX, fromY, toX, toY [, color [, box [, fill]]] | Draws a line from (fromX, fromY) to (toX, toY) with color. If box is true, this will draw a box using the coordinates to specify opposite corners. If box and Fill are true it will draw a box and fill it with the same color used to draw it. You can also use DrawRoundRect with arcwidth = 0 and archeight = 0 to draw a box. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawMouseMoveLine | color | Draws a line using the mouse move points with color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawMouseMoveLineEx | fromX, fromY, toX, toY, color | Draws a line from (fromX, fromY) to the mouse move points stored to (toX, toY) with color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawPicture | filename, x1, x2 [, width1, height1 [, x2, y2, width2, height2 [,rasterop]]] | Draws part or all of a image file on the S309PictureBox. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawPoint | x, y [, color] | Draws a pixel at x, y with color color. This is the same as Pixel(x,y) = color | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawPolygon | points [, color] | Draws a polygon of points vertices connected by straight lines. The polygon is drawn with color color and filled in with the FillColor property. The points can be from 2 to 20. The polygon is closed automatically by drawing a line from the last vertex to the first. Used with FillStyle, FillColor, PenStyle, and PenFillStyle properties and SetPointArray method. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawPolyLines | points [, color] | Draws a series of line by connecting the specified number of points. The lines are drawn with color color. The points can be from 2 to 20. Used with FillStyle, FillColor, PenStyle, and PenFillStyle properties and SetPointArray method. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawRoundRect | left, top, right, bottom [, arcwidth, archeight [, color]] | Draws a rectangle with color color bounded by left, top and right, bottom with rounded corners of arcwidth width and archeight height. Setting arcwidth and archeight to 0 will draw a normal rectangle. The round rectangle is drawn with color color and filled in with the FillColor property. Used with FillStyle, FillColor, PenStyle, and PenFillStyle properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DrawText | text [, x, y [, color]] | Draws a line of text at optional coordinates x, y using optional color color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetMouseMovePoint | point, x, y | Returns the x and y coordinates of point. Point can be from 0 to the value return from the MouseMovePoints property - 1. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IntensityBlue | color | Returns the blue intensity from a color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IntensityGreen | color | Returns the green intensity from a color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IntensityRed | color | Returns the red intensity from a color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvertImage | Inverts the colors of the image that is displayed in the PictureBox. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MirrorImage | Mirrors the image that is displayed in the PictureBox using the Mirror property setting. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hide | Hides the PictureBox and sets the Visible property to False. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Move | left, top, width, height | Move the PictureBox to new left and top location and resizing to width and height.. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Paste | Copies the image from the clipboard to the PictureBox control. Returns True if an image was pasted. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QBColor | colorcode | Returns a color based on the colorcode used by earlier
versions of Basic.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Refresh RefreshX |
Redraws the image in the PictureBox control.. Use RefreshX in VBCE. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RefreshDesktopWallpaper | Causes the Desktop to redraw the wallpaper. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ReleaseCapture | Deactivates the PictureBox to receive the all mouse input. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ResizeImage | Resizes the image in the PictureBox control using the ResizeHeight and ResizeWidth properties. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RGB | red, green, blue | Returns a color comprised of the red, green, and blue intensities. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RotateImage | Rotates the image that is displayed in the PictureBox using the Rotate property setting. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SaveImageToFile | filename, filetype | Save the image in the PictureBox as a .bmp file to the filename specified.
Filename is a string, filetype is an integer. The path specified in the filename MUST
already exist. Returns True if the file was saved, otherwise returns False.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ScrollImage | Scrolls the image in the PictureBox using the ScrollX and ScrollY properties. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SetCapture | Activates the PictureBox to receive the all mouse input. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SetFocus | Activates the PictureBox to receive the focus. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SetPointArray | index, x, y | Sets the pointarray index to x and y. Used with the DrawPolyLines and DrawPolygon methods. The index can be from 1 to 20. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Show | Makes the PictureBox visible and sets the Visible property to True. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TextHeight | string | Returns the height of the string using the current font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TextWidth | string | Returns the width of the string using the current font. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ZOrder | position | Places the PictureBox control at the front or back of the z-order.
|
Files Included
S309PictureBox.ocx - the ActiveX control
Files Included in the Documentation Zip file
S309PictureBox.html - the documentation (this file).
S309PictureBox_tips.html - hint and tips
Files Included in the NS Basic Samples Zip file
S309PictureBox.nsb - sample program using S309PictureBox ActiveX control.
S309PictureBox Bitmap Resource.nsb - sample program using S309PictureBox ActiveX control
to display bitmaps from resource files (some in ROM).
S309PictureBox Common Bitmap.nsb - sample program using S309PictureBox ActiveX control to
display common bitmaps ( All in ROM).
S309PictureBox PlayingCard.nsb - sample program using S309PictureBox ActiveX control to
display Playing Cards.
S309PictureBox Capture Control.nsb - sample program using S309PictureBox ActiveX control
to capture the contents of another control.
S309PictureBox Drawing.nsb - sample program using some of the drawing methods.
S309 Pyramid Solitaire.nsb - a pyramid solitaire game.
Installation of PictureBox ActiveX control on Windows CE
Transfer the ocx file for your processor to the \Windows directory
Register the control on Windows CE by doing:
Start - Run - regsvrce \Windows\S309PictureBox.ocx
You should get "DllRegisterServer in \Windows\S309PictureBox.ocx Succeeded."
Installation of PictureBox ActiveX control on the Desktop
Transfer the desktop version of the S309Picturebox.ocx to the c:\Windows\system32 directory
Register the control on the desktop by doing:
Start - Run - regsvr32 c:\Windows\system32\S309PictureBox.ocx
You should get "DllRegisterServer in c:\Windows\system32\S309PictureBox.ocx Succeeded."
When the desktop control is registered properly it will automatically add the registry entries to enable it to be used with VBCE.
Using the PictureBox ActiveX control in NS Basic
AddObject "S309.PictureBox.1", "picControl",
xpos, ypos, width, height
picControl.Picture = "\Windows\Honey.2bp"
"picControl" can be any name
xpos is the x-coord
ypos is the y-coord
width is the width of the control
height is the height of the control
Using the PictureBox ActiveX control in NS Basic to do a screen capture and save it to a file.
AddObject "S309.PictureBox.1", "picControl",
0,0,0,0
picControl.CaptureScreen
picControl.SaveImageToFile "\Screen Capture.bmp",0