strings into radio buttons
Go to solution
Solved by minibois,
3 minutes ago, Daniboi said:so my task is to make a message box at the end that just says what the user has selected, so if the user picks the colour yellow then it says the colour is yellow
Why not just make button, when pressed it will do this:
string text = ""; if (radiobutton1.Checked == true) { text = radiobutton1.text; } else if (radiobutton2.Checked == true) { text = radiobutton2.text; } // etc. etc... MessageBox.Show(text);
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now