'Speech to text based on time

I'm trying to write a code that will convert my input text to speech when a certain time reached. So i wrote it under Form1_load function Like this

It's From c# window forms ItemArray[1] holds values from a datetime picker and ItemArray[2] holds values from a text box

If(datagridview1.rows.columns >O)

{

If(table.Rows[0].ItemArray[1].Equals(Datetime.Now))

{ msg.Speak((table.Rows[0].ItemArray[2]);

}

}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source