Hi guys happy new year, hope you all have a great year ahead of you
Anyway I'm a little bit stuck on a question and thought I'll ask for a bit of help:
So I'm using a Windows Forms Application and the user types in some text within a textbox, then you can click on a radio button that says 'to Upper Case' or another one which says 'to Lower Case' and it simply changes that text within a label. It seems quiet simple so apologies for asking I just can't seem to get it.
So far I have this:
private void upperCaseButton_CheckedChanged(object sender, EventArgs e)
{
string userText;
userText = inputTextBox.Text;
if (userText == "")
MessageBox.Show("Please enter some text");
else
userText.Font = new Font(userText.Font, userText, Font.Style ^ FontStyle.Uppercase);
}
But this does not work obviously because Uppercase is not apart of Font Style, its the only thing I know to do for this question. Any help is much appreciated :)