2
Answers

simple textbox + toshorttimestring question

Mark Uy

Mark Uy

15y
2.4k
1

i have 2 textboxes that will log a start time and an endtime when i click on a button.


what i want to do is to have some sort of notification (a messagebox or anything else) every time the endtime = datetime.now.toshorttimestring();.
i tried this but it didnt worked:


private void Form1_Load(object sender, EventArgs e)
{

  if (endtime.Text.Equals(DateTime.Now.ToShortTimeString()))
{
MessageBox.Show("time is up");
}


}

thanks in advance.
Answers (2)
0
Iftikar Hussain

Iftikar Hussain

NA 18.9k 275.5k 11y
if you are looking for Windows Application, then as per my knowledge it is not possible.

Regards,
Iftikar
0
Rohidas Jasud

Rohidas Jasud

NA 39 15.4k 11y
Is there any other way to this ?
0
Iftikar Hussain

Iftikar Hussain

NA 18.9k 275.5k 11y
Hi,
        It is not possible to do it. You need to create your own custom control. Please refer the below link

http://social.msdn.microsoft.com/Forums/en-US/a0ad15cf-2e08-4d86-9379-1a094403c983/listboxtextbox-scrollbar-colors

Regards,
Iftikar