Custom Controls RolloverPictureBox as a version 6.4 custom control
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewCodeSampleTemplate |
Contents |
Overview
This article contains the RolloverPictureBox samle converted to version 6.4, using the Theme and Controls designer to create a new custom control.
The RolloverPictureBox custom control adds one extra property, OverImage, to a PictureBox and when hoovering the mouse over the image, it shows the OverImage image.
The control is based on an earlier code sample created for earlier version of Visual WebGui which you will find referenced below.
Samples of use
VB.NET Code
<ComponentModel.Category("Appearance")> _ <ComponentModel.Description("Sets the image to be used when the cursor enters the picturebox")> _ Public Property OverImage() As ResourceHandle Get Return _overImage End Get Set(ByVal value As ResourceHandle) _overImage = value End Set End Property
C# Code
[Category("Appearance")] [Description("Sets the image to be used when the cursor enters the picturebox")] public ResourceHandle OverImage { get { return _overImage; } set { _overImage = value; } }
The demo application
The RollOverPictureBox 6.4 Custom Control
Limitations and workarounds
- The code attached in this article is for version 6.4 and later versions and does not work for prior versions


