oh, and I as much as I tell people to use google when they are lazy, IMO this is one of those weirdnesess that you just pick up through experience. However, as always if you google the exact error message you will find the answer!
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();
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.
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...
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 <input> tag (which creates the button) and a <label> tag (that contains the text linked to the button). You will most likely have to find a way to get CSS attached to the <label> element.
Its been a long time been out of touch with .NET and C# for me, and am trying to come back.
I remember having worked with RESX files in ASP however not sure when was this feature introduced?
Was it ASP .NET 1.1 or 2.0?
Help is appreciated!
Vision is the ability to see the invisible
I have a page with some info on it, including a customer details form. When the user clicks the submit button, they are redirected to a second page* (using the button postbackurl property).
On this new page i wish to recall the data the user input into the form. I know that i should use 'Requet.Form["field name"]', for this but i dont know what the field will be called. At present iam using this:
My brain isnt working today, so excuse the low knowledge!
Need to have two labels on the same line, one in the middle page, one aligned right
Can any1 help with that?
I used to align but it puts them on different lines.