Posted 8 August 2019, 10:51 am EST
Is it possible to add a list of radio buttons to a ribbongroup like the checkedlistoboxhost?
thank you
Forums Home / ComponentOne / WinForms Edition
Posted by: mapoulin on 8 August 2019, 10:51 am EST
Posted 8 August 2019, 10:51 am EST
Is it possible to add a list of radio buttons to a ribbongroup like the checkedlistoboxhost?
thank you
Posted 9 August 2019, 4:49 am EST
Hello,
Though radio buttons cannot be directly added to a ribbon, you can use RibbonToggleButtons that act as radio buttons when the ToggleGroupName property is specified with the same group name for them. You can learn about the same from the documentation:
https://help.grapecity.com/componentone/NetHelp/c1ribbon/webframe.html#C1.Win.C1Ribbon.4~C1.Win.C1Ribbon.RibbonToggleButton.html
Further, it has been implemented in the attached application, using the below mentioned code snippet:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
RibbonToggleButton1.ToggleGroupName = "RadioBtnGroup"
RibbonToggleButton2.ToggleGroupName = "RadioBtnGroup"
End Sub
The same is also implemented in the product sample “AddRibbonItems” found at the default directory: Documents\ComponentOne Samples\WinForms\C1Ribbon\CS.
Regards,
Esha
Prj_C1Ribbon_ToggleButton.zip