Don't allow a specific use of characters
问题 I bumped into a problem, i hope someone can help me out :) I got a TextBox, and i want to limit users, so that they can't write multiple \ one after another. I'm using it for folders. For instance: C\temp\test\ Now I want to prevent input like: C\temp\test\\\ I've tried searching around for this problem, but I couldn't find anything like this, so I hope it's possible :) I don't really have any code to show, but here's the code for my TextBox: private void textBox1_TextChanged(object sender,