c# - Text property of radio buttons inside a groupbox to a decimal variable? -


I'm having trouble finding a way to move the text property of the checked radio button and save it in decimal.

There are currently three group boxes, out of which there are 3 radio buttons

I have to get a text property from the radio button checked in each box, and two of these are in decimal form Save, and one of these will be in the form of Int16.

decimal variablename = text

Any thoughts?

variable <0> define a global variable decimal result = 0; Private zero radio banner 1 checked (object sender, event cargo e) {result = decimal. Purse (radio button.1 text); } Private Zero Radio Button Button2_CheckedChanged (Object Sender, EventArgs E) {Results = Decimals. Purse (radioButton2.Text); } Private Zero Radiobutton 3_CheckedChanged (Object Sender, EventArgs E) {Results = Decimals. Purse (radioButton3.Text); }

Make sure your radio button is text number but any character

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -