well i am developing a simple program (for me) it is for a note notes, you put a day and a time to your note, when it was the time and day, it appears a ballontip,
i have a problem here to, any time i put to this ballontip, it ever get to be only 5 seconds
DateTime hora; // hora == time
DataTable tabla = daonota.seleccionaraahora(); //chose now =seleccionar ahora
if (tabla.Rows.Count == 1)
{
hora = Convert.ToDateTime( tabla.Rows[0][4].ToString());
string titulo = tabla.Rows[0][1].ToString();
String texto = tabla.Rows[0][2].ToString();
texto=texto+"\Date programmed="+tabla.Rows[0][3].ToString();
texto = texto + "\nTime programmed=" + tabla.Rows[0][4].ToString();
notifyIcon1.ShowBalloonTip(10000, titulo, texto, ToolTipIcon.Info);
}
i have this code in a timer (timer1) it do a query every secund, do you know any form better for to do it (goal is it appears a ballon tip in the time put)
well i want to to … if the computer is turn off, it turn on, any code for to do it since c#? and another thing… how do i do, my program is execute since the computer turn on, automatically?
You need to put a link to your program in the registry at:
Then it will run every time the computer starts.