CSHARPWINDOWSFORM Telegram 93
bool numbersOnly;

public MyTextBox()
{
numbersOnly = false;
}
public bool NumbersOnly
{
get { return this.numbersOnly; }
set { this.numbersOnly = value; }
}





protected override void OnKeyPress(KeyPressEventArgs e)
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)&&NumbersOnly==true)
{
e.Handled = true;
}
base.OnKeyPress(e);
}
}



tgoop.com/CsharpWindowsForm/93
Create:
Last Update:

bool numbersOnly;

public MyTextBox()
{
numbersOnly = false;
}
public bool NumbersOnly
{
get { return this.numbersOnly; }
set { this.numbersOnly = value; }
}





protected override void OnKeyPress(KeyPressEventArgs e)
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar)&&NumbersOnly==true)
{
e.Handled = true;
}
base.OnKeyPress(e);
}
}

BY برمجة تطبيقات الويندوز C# Programming


Share with your friend now:
tgoop.com/CsharpWindowsForm/93

View MORE
Open in Telegram


Telegram News

Date: |

The Channel name and bio must be no more than 255 characters long Telegram channels enable users to broadcast messages to multiple users simultaneously. Like on social media, users need to subscribe to your channel to get access to your content published by one or more administrators. Administrators Image: Telegram. fire bomb molotov November 18 Dylan Hollingsworth yau ma tei
from us


Telegram برمجة تطبيقات الويندوز C# Programming
FROM American