70 likes | 154 Views
Learn to create a simple Windows application step by step. Open a new project, design the interface, add controls, and work with buttons and timers. Get hands-on experience with coding in a friendly environment.
E N D
Simple Windows Applications October 24, 2005
First Steps • Open a new project • make it a windows application, not console • View --> Designer • View --> Toolbox • be sure to press the toolbox pushpin • Drag and Drop controls from the toolbox • change their default values in the design box • change the Name and default Text
Working with Button controls • Be sure to rename the button • Double-Clicking the button in "design view" sends you into "code view", and writing the "button click" handling event
the Timer control • does not create anything visible • be sure to set these properties: • Interval (default is 100, = 1/10 of second) • Name • Enabled (default is false) • Double Click to write the code for when the timer goes off.