I can't figure out why this If statement doesn't work.
if (textBox2.Text.Contains(".xwm") && textBox4.Text.Contains(".xwm") == true)
{
textBox4.Text.Replace(".xwm", ".wav");
}
else if (textBox2.Text.Contains(".wav") && textBox4.Text.Contains(".wav") == true)
{
textBox4.Text.Replace(".wav", ".xwm");
}
What its supposed to do is replace the file extension in textBox4 with the opposite one in this case I'm making a XWM to Wav Converter. so IF textbox2 and textBox4 contain the same file extension it will change the one in textBox4 to the other file type.
Why isn't it working.
PS: I'm a noob on C# so explain it as best as you can to a noob