1 / 9

Graphical User Interfaces

Graphical User Interfaces. Chapters 14-15 Dr. Abraham. Windows Forms. Dialog MDI (window multiple document Interface) Window Controls and components are placed on the form. Toolbox allows you to choose controls and components A forms a container that holds the controls and components.

roy
Download Presentation

Graphical User Interfaces

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphical User Interfaces Chapters 14-15 Dr. Abraham

  2. Windows Forms • Dialog • MDI (window multiple document Interface) Window • Controls and components are placed on the form. • Toolbox allows you to choose controls and components • A forms a container that holds the controls and components

  3. Event handling • Events drives the program to perform a task • Click • Change • Time • Event handler is what you write

  4. Visual studio generated code • Can give great insight into what is going on • See what is in the Designer.cs • It will have all controls and components you placed there. • Delegates and Event-Handling Mechanism • Event handlers are connected to a control’s events through objects called delegates. • Delegate object holds a reference to a method with a signature that is specified by the delates type’s declaration.

  5. Creating event handlers • Double click on a control and write code • Known as default event • You can use the properties window to create event handlers • Click on the events (looks like the lightning) in the properties window.

  6. Mouse handling • Show program

  7. Keyboard events • Show program

  8. Menus • Covered in class with program assignment • Choosing colors, calendar,etc. • Combobox – already coverd • Tab control – already covered

  9. Visual ineritance • Base form • Child form

More Related