I would like the text in my textBox to be set to upper-case whenever currentItemChanged is triggered. In other words, whenever the text in the box changes I’d like to make the contents upper-case. Here is my code:
private void rootBindingSource_CurrentItemChanged(object sender, System.EventArgs e) { toUserTextBox.Text.ToUpper(); readWriteAuthorization1.ResetControlAuthorization(); }
The event triggers for sure, I’ve tested with a messageBox. So I know I’ve done something wrong here… the question is what.
Strings are immutable. ToUpper() returns a new string. Try this: