if ("" == feespaybletothecounsel.Text ) { MessageBox.Show("please check"); } else { string convertys = ConverttoWords(Convert.ToInt32(feespaybletothecounsel.Text)); if (convertys == "" ) { feespaybletothecounsel.Text = ""; } feespaybletothecounsel1.Text = convertys; }
int.TryParse
int val; if(!int.TryParse(feespaybletothecounsel.Text, out val) { MessageBox.Show("please check"); }else { feespaybletothecounsel1.Text = ConverttoWords(val); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)