Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

[c#] Konstruktor za vreme

[es] :: .NET :: .NET Desktop razvoj :: [c#] Konstruktor za vreme

[ Pregleda: 615 | Odgovora: 1 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Valerij Zajcev
junior developer, Spinnaker New Techologies
Kragujevac

Član broj: 40886
Poruke: 987
*.dynamic.sbb.co.yu.



Profil

icon [c#] Konstruktor za vreme15.09.2007. u 18:01

Ako na formi trebam uvek da imam prisutan jedan lbl koji prikazuje vreme, da li onda u konstruktoru forme trebam da imam komandu koja podesava vreme?
recimo:
Code:

...
form1 ctor
{
    lblTime.text = DateTime.now;
}

15.09.2007. u 18:01 

bjevta
Bratislav Jevtic
http://www.tojesoft.co.rs
Kragujevac

Član broj: 5216
Poruke: 190
*.dynamic.sbb.co.yu.

Sajt: www.tojesoft.co.rs


Profil

icon Re: [c#] Konstruktor za vreme15.09.2007. u 18:51
Ne. Potrebna ti je Timer kontrola koju treba podesiti da okida event sa željenom učestanošću. Event handler timer kontrole će raditi: lblTime.text = DateTime.now;
Debugging is twice as hard as writing the code in the first place. Therefore, if you
write the code as cleverly as possible, you are, by definition, not smart enough to
debug it. -Brian Kernighan
15.09.2007. u 18:51 

[es] :: .NET :: .NET Desktop razvoj :: [c#] Konstruktor za vreme

[ Pregleda: 615 | Odgovora: 1 ]

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.