1 / 12

Windows Programming in C#

Windows Programming in C#. Corinne Hoisington Central Virginia Community College. Forms and Windows Programming. Console-based applications aside, most users expect to interact with a window based program.

maren
Download Presentation

Windows Programming in C#

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. Windows Programming in C# Corinne Hoisington Central Virginia Community College

  2. Forms and Windows Programming • Console-based applications aside, most users expect to interact with a window based program. • When you create a Windows application using Visual Studio, the Integrated Development Environment (IDE) includes one form in the project.

  3. Creating a MessageBox • A MessageBox is a GUI object that can contain text, buttons, and symbols that inform and instruct a user • You must use the static class method Show() to display a message box, because its constructor is not public

  4. Creating a MessageBox Output of MessageBox1 program

  5. Creating a MessageBox Arguments used with the MessageBox.Show() method

  6. Using GUI Classes in Applications • Using MessageBox objects Addition.cs

  7. GUI Applications • Using a Form that is a program's main window Window1.cs Window2.cs WindowWithButton.cs

  8. Using the Visual Studio IDE • Code view and design view (like VB) • Easy to: • Drag and drop components • Add properties • Create events • New Items • Form Opacity • Anchor Docking • Much Easier Main Menu System • Monthly Calendar • Date Picker Calendar

  9. Now Let’s Create an Entire Application Together • Wood Cabinetry Example • This could be placed on a Mobile Computing Device (PDA) • C# has truly added some of VB’s better options such as form development

  10. Create a Form inputTextBox outputTextBox code

  11. C# Textbooks • Programming with Visual C#.NET • By: Joyce Farrell • ISBN 0-619-06273-8 • Publish Date: May 29, 2002 (Course.com)

  12. .NET ClientsNew Breed of Smart Clients

More Related