Hello programmers out there :)
Im currently having problems with allowing the "-" in my TextBox.
(Im using Visual Studio 2010)
Im kinda new to programming, thats why this code looks messy.
void Form1::textBox9_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e)
{
if(!Char::IsDigit(e->KeyChar) && (e->KeyChar != 0x08) && (e->KeyChar != 0x6D))
e->Handled = true;
}
I tryed that, but this simply doesn't work, it doesn't allows anything.
Thanks for future help :)
(Sorry for my bad english, its not my motherlanguage)