I’ve posted something like this a bit ago and it helped out but i had issues afterwards and couldn’t do anything. SO I’M BACK!
Time time1;
private void btnNewTime_Click(object sender, EventArgs e)
{
Time time1 = new Time(Convert.ToInt32(txtHour.Text.Trim(), Convert.ToInt32(txtMin.Text)));
}
and in the time class:
public Time()
{
hour = 12;
minute = 00;
}//end of Time
public Time(int Hour, int Minute)
{
hour = Hour;
minute = Minute;
}//end of Time
It’s suppose to go into the parameterized constructor (the second one) But i get the error:
“does not contain a constructor that takes ‘1’ arguments”
This was a typo, a misplaced parentheses.