//When clicked on a button on this form this class will show a form to renew the license
private void button1_Click(object sender, EventArgs e)
{
Notif f = new Notif();
f.Show();
int b =
//how to get the value from Valid class
}
//This is the class of a form which will display a renew button to renew the license
private void button1_Click(object sender, EventArgs e)
{
int d = DateTime.Now.Day;
this.Close();
//how to pass this date to form1 class...??
}
//This is the class to capture the value of the day sent from the renew button of the above class
public static class Valid
{
public int day { get; set; }
}
I am seeking the solution for the problem i.e how can I get the value of the day in the Form1 class if the renewed button is clicked..??
You can read the comments mentioned in each of the classes u will understand the problem