It is necessary to replace all the characters 'х' in the string with 'F' , tried this:
String^ tempString = textBox1->Text; for (size_t i = 0; i < tempString->ToString()->Length; i++) { if (tempString[i] == L'x'); { tempString->SubString(i)->Replace(L'x', L'F'); } } The expected result is not received. What could be the problem?