skip to main
|
skip to sidebar
**DotNet**
Social Icons
Pages
Home
Wednesday, 18 July 2012
Enter Only Values In Textbox
if (!(char.IsDigit(e.KeyChar) || char.IsControl(e.KeyChar) || (e.KeyChar == (char)45) || char.IsPunctuation(e.KeyChar)))
{
e.Handled = true;
MessageBox.Show("Enter Only Number", "Only Number");
}
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
SaveDialog Box
private void BackUp_Load(object sender, EventArgs e) { this.textBox1.ReadOnly = false; ...
Auto Complete List Values in comboBox
DataTable t = new DataTable(); t.Columns.Add("ID", typeof(int) t.Columns.Add("Display...
compoBox value one by one Print
do { if (cl == cmbvattype.Items.Count) { cl = cmbvatt...
Autocomplete Textbox in C#
public partial class Search_Candidate : Form { OleDbDataReader reader; OleDbCommand cmd; Ole...
Connection in perid
{ class connection { OleDbConnection con, con1, con2; public OleDbConnection connect_remote() { ...
Export to Excel
private void btnexport_Click(object sender, EventArgs e) { try { SaveFileDialog ...
Connect MySQL Database from android
Android Tutorials: Connect MySQL Database from android : Retrieve Database from mysql and Diplaying in Dynamic Table using android To ...
Enter only 10 Numbers in Textbox
int a=convert.ToInt32(txtnum.text); if(a>10) { MessageBox.show("Only 10 Numbers"); string a1=txtnum.text; string b=a.subs...
Password check in asp.net
string strConnection = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; string strS...
MS Access Connection class in .Net
class connection { OleDbConnection con; public OleDbConnection connect() { con = new OleDbCo...
About Me
Unknown
View my complete profile
Powered by
Blogger
.
Basic .Net
►
2014
(1)
►
June
(1)
▼
2012
(14)
▼
July
(11)
Password check in asp.net
preview button
Decimal Function
compoBox value one by one Print
Connection in perid
MS Access Connection class in .Net
Enter Only Values In Textbox
Enter Ony
Export to Excel
serial Generator in Gridview
SaveDialog Box
►
June
(3)
Sample text
Your Comments
0 comments:
Post a Comment