Hi everyone...just going from console apps to windows forms apps....This is extremely basic and is annoying me now...
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("{0}",hello2(2));
}
public int hello2(int hello)
{
hello = 10 / 5;
hello = Convert.ToInt32(hello);
return hello;
}
}
}
I am trying to get the hello2 method to return the sum 10 / 5 and return 2...
works fine when I do it as a console app...
could anyone please give me a fix to this and tell me how they "transitioned" from console apps to windows forms...
thanks