Articles in this section
Category / Section

How to specify images?

1 min read

 

Summary

 

The RadioButtonAdv control can display images for CheckedState,UnCheckedState,MouseOverCheckedImage,DisabledImage,MouseOverUncheckedImage etc by toggling ImageCheckBox to true and selecting images from the property page.The image size to be displayed can be specified by setting the sizes with ImageCheckBoxSize property of the control.Sizes can be (16 x 16),(32 x 32),(48 x 48) etc. The height and width of ImageCheckBoxSize can be set to different numerals also like (16 x 18),(16 x 20) etc.If the state images of the CheckBox needs to be stretched,then you can make use of the property StretchImage.

 

Additional Information

C#

 

this.radioButtonAdv1.ImageCheckBox = true;

this.radioButtonAdv1.ImageCheckBoxSize = new System.Drawing.Size(16, 16);

this.radioButtonAdv1.CheckedImage = ((System.Drawing.Bitmap)(resources.GetObject("radioButtonAdv1.CheckedImage")));

this.radioButtonAdv1.UncheckedImage = ((System.Drawing.Bitmap)(resources.GetObject("radioButtonAdv1.UncheckedImage")));

this.radioButtonAdv1.MouseOverCheckedImage = ((System.Drawing.Bitmap)(resources.GetObject("radioButtonAdv1.MouseOverCheckedImage")));

this.radioButtonAdv1.MouseOverUncheckedImage = ((System.Drawing.Bitmap)(resources.GetObject("radioButtonAdv1.MouseOverUncheckedImage")));

this.radioButtonAdv1.DisabledImage = ((System.Drawing.Bitmap)(resources.GetObject("radioButtonAdv1.DisabledImage")));

VB

Me.radioButtonAdv1.ImageCheckBox = True

Me.radioButtonAdv1.ImageCheckBoxSize = New System.Drawing.Size(16, 16)

Me.radioButtonAdv1.CheckedImage = (CType(resources.GetObject("radioButtonAdv1.CheckedImage"), System.Drawing.Bitmap))

Me.radioButtonAdv1.UncheckedImage = (CType(resources.GetObject("radioButtonAdv1.UncheckedImage"), System.Drawing.Bitmap))

Me.radioButtonAdv1.MouseOverCheckedImage = (CType(resources.GetObject("radioButtonAdv1.MouseOverCheckedImage"), System.Drawing.Bitmap))

Me.radioButtonAdv1.MouseOverUncheckedImage = (CType(resources.GetObject("radioButtonAdv1.MouseOverUncheckedImage"), System.Drawing.Bitmap))

Me.radioButtonAdv1.DisabledImage = (CType(resources.GetObject("radioButtonAdv1.DisabledImage"), System.Drawing.Bitmap))

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied