How can I do to identify the character ~ in a keypress. I need to do this for a textbox, that when the person scans a number, run the scan until it completes and has the two characters ~ the start and the end ~.
private void formpress(object sender, KeyPressEventArgs e)
{
string buscar = "";
if (e.KeyChar == char(126) )
{
}
}
I have no idea how to implement this so that I can execute the number until it has the start character and the end character. If someone can help me, thank you.