| Course Description | |
| This course provides a practical, hands-on coverage of GUI development using Windows Forms and C#. The student will acquire proficiency in the use of Visual Studio .NET to create professional class Windows applications, gain a thorough grounding in the important controls provided by Windows Forms, and learn how to implement dialogs, menus, toolbars and status bars. Finally, understanding the use of resources and application settings in Windows Forms applications is covered. Course Length: 5 Days Course Tuition: $1890 (US) |
|
| Prerequisites | |
| Experience programming the .NET Framework using C# | |
| Course Outline |
|
• Introduction to Windows Forms What Are Windows Forms? Windows Forms Class Hierarchy Control Class Form Class Form Class Methods Building a Form Application Class Simple Windows Application Using the .NET Framework SDK Using Controls Common Control Properties Ambient Control Properties Common Control Events Trapping Events Using the Button Control HelloWorld – Step 3 Using the Label Control Using the TextBox Control MSDN Documentation Visual C 2005 Express Edition VC 2005 Express Command Line • Visual Studio and the Forms Designer Visual Studio Using the Forms Designer Examining the Forms Designer Generated Code Designing "Pretty" Forms Designing "Easy-to-Use" Forms Setting the Tab Order Defining Keyboard Shortcuts Defining Default and Cancel Buttons • Using Controls Controls Using the TextBox – Again Using the Clipboard Making Selections Using the CheckBox Using the RadioButton with a GroupBox Working with Ranges Using the NumericUpDown Using the TrackBar Using the ProgressBar Working with Dates Using the MonthCalendar Using DateTimePicker Other Controls Tracing Debug and Trace Classes Viewing Trace Output Debug Statements Debug Output WriteLine Syntax • List Controls Working with Lists Using a ListBox Selected Items Selected Indices Other ListBox Features Adding and Removing Items Dynamically Using the ComboBox Storing Objects in List Controls Using the DomainUpDown Control Using a ListView Adding Columns to a ListView Adding items to a ListView • Working with Dialogs Modal vs. Modeless Dialogs Message Box MessageBox Show Method Closing a Form Custom Dialogs Modal Dialogs Creating a New Form Common Dialog Properties Designing the Form Configuring the DialogResult Displaying the Form Accessing Data on the Form Changing the Behavior of a Button's DialogResult Displaying Errors with the ErrorProvider Control Validation Using the ErrorProvider Modeless Dialogs Designing the Modeless Dialog Displaying the Form Managing the Relationship Between the Parent and Modeless Dialog Programming the Apply and Close Buttons Programming the Apply Button Managing the Number of Instances of the Modeless Dialog Common Dialogs Using the Common Dialog Controls • Menus, Toolbars and Status Bars Menus MainStrip Control Attaching a Menu to a Form Configuring Items in a Menu Testing the Menu Responding to Menu Events DropDownOpening Event ContextMenuStrip Control Context Menu Events Handling Multiple Events Status Bars A Quick Status Bar Toolbars Importing Images Associating an Event Handler Image and Text on Buttons • Advanced Windows Forms Topics Forms and Controls Parent/Child Relationships Owner/Owned Relationships Top-Most Forms MDI Applications .NET MainMenu Class Creating an MDI Parent Window Creating and Displaying an MDI Child Window Arranging MDI Child Windows Merging the Parent and Child Menus Clipboard Object Placing Data on the Clipboard Retrieving Data from the Clipboard Visual Inheritance Building the Base Form |
• Using Advanced Controls Panel Control TreeView Control TreeView Properties TreeView Methods TreeView Events TreeNode Class Adding Nodes Removing Nodes Iterating Through Nodes ImageList Image Collection Editor Splitter Control Splitter and SplitContainer Tab Control Controls on Tab Pages Selected Index Tab Control Event Handling Controls Documentation • Resources Resources Image Resources Loading the Bitmaps Embedded Resources Accessing Embedded Resources Creating String Resources Strings in the Program Accessing Resources from Code Cultures and Internationalization .NET Support for Cultures Changing the Current Culture Building Localizable Forms MainForm.resx File Code for Localization Visual Studio Localization Support • Applications and Settings The Application Class Starting and Stopping Applications Application Events Logging to a File Closing a Window Processing Windows Messages Filtering Messages Configuration Files Reading Configuration Files Configuration File and Visual Studio Accessing the Registry • Data Access and Data Binding ADO.NET .NET Namespaces ADO.NET Architecture .NET Data Providers Connected Data Access DataSet Architecture Why DataSet? DataSet Components XML File Schema Definition XML File Data Reading and Writing XML Accessing a DataSet Adding a New Row Searching and Updating a Row Deleting a Row Data Adapters Data Binding Concept Simple Data Binding Binding to a List Binding to a DataGrid DataView Filtering and Sorting DataView and Data Binding Column Formatting • Windows Forms in .NET 2.0 Evolution of Microsoft Windows New Controls in .NET 2.0 ToolStrip and SplitContainer WebBrowser Control Application Settings Application Settings Using Visual Studio Application Configuration File User Configuration File Manual Application Settings Default Values of Settings New Data Binding BindingSource Architecture Binding to a List Setting up the Bindings Category Class Code in the Form DataGridView Control Performing a Query BackgroundWorker Component BackgroundWorker Code ClickOnce Deployment Publishing a ClickOnce App Contact us for course schedules or more information. |


