namespace Age_Calculator_Apps { public partial class Form1 : Form { //ServiceReference1.Age_calculationSoapClient obj = new ServiceReference1.Age_calculationSoapClient(); localhost.Age_calculation obj = new localhost.Age_calculation(); int day, month, year; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { day = Convert.ToInt32(textBox1.Text.ToString()); month = Convert.ToInt32(textBox2.Text.ToString()); year= Convert.ToInt32(textBox3.Text.ToString()); int days = obj.converttodaysweb(day, year, month); MessageBox.Show("you are"+ " "+ days +""+ "days year old"); } } }
ToString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)