I have a Text Box in which it can only contain a comma, so I thought about having the program detect when the user uses the comma if there already exists one in that particular Text Box.
Here is an example of the code I want to get:
if(*Verificar se já existe uma vírgula no textBox1) {
//não fazer nada
}
else {
this->textBox1->Text += ",";
}