RadioButton Width
-
Hi everyone, I need to create runtime RadioButtons with C#, and I want to set the width of the label (or of the entire control). This way it's not working: RadioButton rdb = new RadioButton(); rdb.Width=300; :sigh: Suggestions? What am I doing wrong? Thanks!
-
Hi everyone, I need to create runtime RadioButtons with C#, and I want to set the width of the label (or of the entire control). This way it's not working: RadioButton rdb = new RadioButton(); rdb.Width=300; :sigh: Suggestions? What am I doing wrong? Thanks!
Have you tried setting the AutoSize property of the RadioButton to false? By your code, I'm assuming you're not using ASP .Net, and that you are using C#; if that is the case, you might want to put this question in the C# forum next time. Otherwise, I apologize for my assumption. :) I hope this helps.
-
Have you tried setting the AutoSize property of the RadioButton to false? By your code, I'm assuming you're not using ASP .Net, and that you are using C#; if that is the case, you might want to put this question in the C# forum next time. Otherwise, I apologize for my assumption. :) I hope this helps.
Okk...I'm using C#, you're right :) but I'm developing a web application, so I thought it was better to post here, otherwise i could have got an answer about windows applications... Yes, I tried to change the autosize to false, but it didn't work... Don't know what I have to think... Anyway, Thanks!
-
Okk...I'm using C#, you're right :) but I'm developing a web application, so I thought it was better to post here, otherwise i could have got an answer about windows applications... Yes, I tried to change the autosize to false, but it didn't work... Don't know what I have to think... Anyway, Thanks!
I apologize for my assumption; you've posted in the right area. :) If you look at the source code in HTML after ASP .Net creates the radio buttons, it actually creates two HTML elements, an tag (which creates the button) and a tag (that contains the text linked to the button). You will most likely have to find a way to get CSS attached to the element. I hope this helps.