I'm trying to make a masked Textbox that has a partial value already set and then the user needs to enter 4 more digits then allow it to send out. I've had a hard time trying to explain but here's what it currently looks like for reference:
private void maskedTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter && maskedTextBox1.Text.Length == ("007744D4 0131").Length + 4)
{
NCInterface.ConstCodeAdd(codes[maskedTextBox1.Text], true);
}
}
Now the last part where it has NCInterface, is where it is being sent to the PS3 console, and where I need to know how to make sure that maskedTextBox1.Text
converts properly. The maskedTextBox needs to be able to accept both numbers and letters. I have nothing to really compare this to.. But that's just where its sent from. But it just says that it cant convert type string to int. So if anyone is able to give me a hand it'd be much appreciated.