Windows Forms
Luentotaltiointi
- Windows Forms Youtubessa
- tjlahton2012-02-01_1316.mp4 66M
- tjlahton2012-02-01_1316.wmv 91M
- tjlahton2012-02-01_1316.mp3 32M
Luennolla käsitellään perusteet Windows Forms -sovelluksen tekemisestä.
Luentoesimerkki (luentoesimerkki zip-paketissa)
- Uuden solutionin luominen
- Solution Explorer
- Properties
- Lomake
- Lomakkeen nimeäminen
- Painikkeet
- Accesskeyt
- TabIndex
- Labelit
- Autosize
- TextAlign
- Tapahtumat (events)
- Click-tapahtuma
- Convert-kirjasto tai ToString-metodi muuntaa merkkijonoksi
- Kuorma-autolaskuri
- partial class
- Program.cs - pääohjelma
- Form1.resx - resurssit
- Form1.Designer.cs - automaattisesti generoitu osa lomakkeen koodista
- Kuva
- Oikea kuvaformaatti. Kaikki muuntuvat käytössä bmp-muotoon.
- Timer
- Pictureboxin sijainti näytöllä?
- Location (struct!)
- Left / Right
- Miten luodaan useita autolaskureita?
- Uuden lomakkeen elinikä?
- Lomakkeen sulkemisen estäminen
- Closed vs Closing
- Valmiit dialogit
- Väridialogi
- OK vs Cancel
- Missä vaiheessa kannattaa luoda?
- Menut
- Propertyt
- About
Käyttäjien kommentit