Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I'm creating a quiz application in C#(winform),so I need add scrollBar in Radio Button(if text is overflow in radioButton, the scrollBar will appear on radio button).
I searched but never find any suggestion on this..
I'm using radio button as option so I need to stick on radio button Control..
How to set scrollBar on Radio button in C# winform, If there is another way to do Please suggest me..

thanks in advanced..

regard
Jayanta...
Posted

1 solution

A RadioButton does not inherit scrolling capability. However, the RadioButton Control does have an 'AutoEllipsis Property which, if set to 'true ... and the 'AutoSize Property of the RadioButton is set to 'false ... will result in the full Text of the RadioButton appearing as a pop-up.

In actual practice: with any substantial amount of Text assigned to the RadioButton, the pop-up may extend beyond the Form's boundaries, and look terrible ... there's no way you can force line-breaks in the pop-up Text. I don't think this would be acceptable in a questionaire, or survey.

I recommend you create a UserControl that combines a RadioButton with a TextBox: this is not difficult to create.
 
Share this answer
 
Comments
JayantaChatterjee 26-Nov-13 4:58am    
Thanks Sir... :-)
now I create a userControl for that...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900