We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to specify images?

 

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))

Article ID: Published Date: Last Revised Date: Platform: Control:
1630 04/30/2011 07/10/2014 WinForms RadioButtonAdv
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon