[Tutorial #1]How to make a countdown program

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
10 posts Page 1 of 1
Contributors
User avatar
teunissenstefan
New Member
New Member
Posts: 18
Joined: Tue Aug 03, 2010 9:45 am

Hallo! This is my first tutorial but i am not really new because i am member for 1 year now.
This tutorial is about how to make a countdown program.

Lets start!
1)Make a new project, Windows Forms
2)Add:
  • 1 label
  • 1 timer
3)Change the text from the label to the seconds to countdown
4)make timer interval 1000, and put enabled on true
5)Code of timer_tick:
Code: Select all
label1.text = label1.text - 1
6) Debug the project, Tada!

Thanks for reading! :D
Last edited by teunissenstefan on Wed Jun 13, 2012 11:47 am, edited 1 time in total.
User avatar
DarkyKnife
Top Poster
Top Poster
Posts: 109
Joined: Thu Apr 29, 2010 4:59 pm

Half english, half german, cool...
Visit my Youtube chanel
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

DarkyKnife wrote:
Half english, half german, cool...
First of all: its dutch (yea I know since im dutch :D). Let me just transelate this tut so it is open for everybody:
teunissenstefan wrote:
Hallo! This is my first tutorial but i am not really new because i am member for 1 year now.
This tutorial is about how to make a countdown program.

Lets start!
1)Make a new project, Windows Forms
2)Add:
  • 1 label
  • 1 timer
3)Verander de tekst van de label naar hoeveel seconden hij moet aftellen
4)Zet de interval van timer op 1000 en zet hem op enabled = true
5)Code van timer_tick:
Code: Select all
label1.text = label1.text - 1
6) Debug het project, Tada!

Bedankt voor het lezen :D
Hello,
This is my first tutorial but i am not really new because I am a member for 1 year now. This tutorial we will make a countdown program.

Lets start:
1)Create new project (as a windows form project)
2)Add:
1 lablel, 1 timer
3) Chance the text of the leable to the amount of seconds the program has to count down from.
4)Put the interval of the timer on 1000 and enabled = true
5)Code for the timer_tick:
Code: Select all
label1.text = label1.text - 1
6) Debug the project and ur done!

Thanks for reading!

So far my translation, just a quick note to stefan (which is in dutch and english coz I dont know if he understands me if I type it in english (no offense!)).

Stefan,
Zodra de timer onder 0 gaat krijg je waarschijnlijk een error, en in plaats van een label kun je ook een textbox gebruiken zodat de gebruiker zelf een interval kan invullen.

Stefan,
When the timers (actually the label) goes beneath 0 you are most likely to get an error. Despite the fact that you use a label now you could try and use a textbox for a more user-frendly usage.

Hope I helped both the reader and the creator with this :D
Practice makes perfect!

VIP since: 6-10-2011
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Clanc,

Thanks for translating that.

Stefan,

Nice for a first tutorial, well done! wahooo;
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
teunissenstefan
New Member
New Member
Posts: 18
Joined: Tue Aug 03, 2010 9:45 am

DarkyKnife wrote:
Half english, half german, cool...
Oh that was a mistake, translated :P
User avatar
teunissenstefan
New Member
New Member
Posts: 18
Joined: Tue Aug 03, 2010 9:45 am

clanc789 wrote:
Stefan,
Zodra de timer onder 0 gaat krijg je waarschijnlijk een error, en in plaats van een label kun je ook een textbox gebruiken zodat de gebruiker zelf een interval kan invullen.

Stefan,
When the timers (actually the label) goes beneath 0 you are most likely to get an error. Despite the fact that you use a label now you could try and use a textbox for a more user-frendly usage.
Nope, werkt gwn :D en weet ik maar ik had ooit een video gemaakt en had gwn maar wat gedaan, want het ging voor mij niet zo zeer om hoe het eruit zag maar meer om beginners de code te leren, of zoiets :)
And i was writing this tutorial while i was watching an hilarious video on YT. ANd when i return back to writing this i got confused
User avatar
lolxot
VIP - Donator
VIP - Donator
Posts: 155
Joined: Thu Apr 08, 2010 4:59 pm

DarkyKnife wrote:
Half english, half german, cool...
that would be german:
Hallo! Dies ist mein erstes Tutorial, aber ich bin bereits Mitglied seit einem Jahr. Das Tutorial handelt davon, ein Countdown Programm zu erstellen.

Lasst uns beginnen!
1)Mach ein neues Projekt, Windows Forms-Anwendung
2)Fügt hinzu:
•1 label
•1 timer
3)Ändere den Text des labels zu dem Text, von dem es runterzählen soll
4)Setze das Intervall des Timers auf 1000, und setze enabled auf true
5)Code für das timer_tick Event:
Code: Select all
label1.text = label1.text - 1
6) Teste das Projekt, Tada!

Danke für's lesen!


Actually this is a useless post, but currently I'm totally bored!!!!!
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

Nice lolxot :D Anyone up for a translation from another native speaker? :D
Practice makes perfect!

VIP since: 6-10-2011
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

clanc789 wrote:
Nice lolxot :D Anyone up for a translation from another native speaker? :D
I'm in!
Ukrainian:
Code: Select all
Добрий день! Це моя перша інструкція, але я не новенький тому що я вже член сайту 1 рік.
Ця інструкція про те, як зробити зворотній відлік.

Розпочнемо!
1)Створіть новий проект, Форми Віндовс.
2)Додайте:
1 позначку
1 таймер
3)Змініть текст на позначці на кількість секунд до відліку
4)Зробіть інтервал таймеру 1000, і увімкніть його.
5)Код для timer_tick:

label1.text = label1.text - 1

6) Запустіть порект. Та-да!

Дякую за те, що прочитали! 
Image
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

Ffenixw0rks wrote:
clanc789 wrote:
Nice lolxot :D Anyone up for a translation from another native speaker? :D
I'm in!
Ukrainian:
Code: Select all
Добрий день! Це моя перша інструкція, але я не новенький тому що я вже член сайту 1 рік.
Ця інструкція про те, як зробити зворотній відлік.

Розпочнемо!
1)Створіть новий проект, Форми Віндовс.
2)Додайте:
1 позначку
1 таймер
3)Змініть текст на позначці на кількість секунд до відліку
4)Зробіть інтервал таймеру 1000, і увімкніть його.
5)Код для timer_tick:

label1.text = label1.text - 1

6) Запустіть порект. Та-да!

Дякую за те, що прочитали! 
WOOT that is unreadable but so cool if you can speak it O.O :D
Practice makes perfect!

VIP since: 6-10-2011
10 posts Page 1 of 1
Return to “Tutorials”