How to add radio buttons to a UserForm?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2017
05:18 PM
12-25-2017
05:18 PM
How to add radio buttons to a UserForm?
Can someone please post an example that shows how to add a radio button to a UserForm?
I have a UserForm that contains a TcxRadioGroup whose Name property is radioGroup. If I want to add a radio button to that radio group, I assume I need something like this:
var userForm = UserForms.MyForm; userForm.RadioGroup.Properties.Items.Add( something );
but I can find no documentation or examples of the mysterious "something" in the above example. The only relevant documentation (such as it is) is here.
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2017
12:44 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2017
04:25 PM
12-26-2017
04:25 PM
The Items.Add() method returns the new radio button, so:
var frm = UserForms.MyForm; var rb = frm.radioGroup.Properties.Items.Add(); rb.Caption = "My caption";
Note that code completion does not display most of the available properties and methods. For reference, the manual page for the TcxRadioGroupItem object is here.
