To Jost .NWDP Site

Event Driven Programming Notes

Review Questions

  1. What do these symbols mean in C#? Some have more than one meaning.
    +   &   /   %   ^   #   @   ( )   { }   [ ]

  2. What are the values of these expressions?
    "1" + 2 + 3     18 / 4 * 2.0

  3. What does 328.76M mean?

  4. Which operators use short circuit evaluation?

  5. How do you know if & denotes logical or bitwise and?

  6. What is the difference between the C# keywords ref and out?

  7. When is the keyword params used?

  8. For what are base-64 strings used?

  9. What does "{3,8:#.00}" mean as a format string?

  10. Give three methods in which a format string can be used.

  11. Show how to use a WinForms PictureBox control to display an image embedded into an XML resource file (.resx file).

 

Examples

WinformsEvents  MonthlyPayment  ToUpper1  ToUpper2  ShowPoem  Quiz1  Animals  Quiz2  ChineseZodiac  Beverage  Greeter3  HtmlControls
 
Example files: event.zip and event.htm.

 

Part A: Topics from C#-1 Notes

  1. Enum Declarations   C#-1.WeekDaysEnum Example

  2. Flow of Control

  3. One-Dimensional Arrays

  4. Scope

  5. Methods

  6. System.Math   C#-1.MathMethods Example

 

Part B:   Winforms Controls.

  1. Controls as Classes   Intro.Controls1, WinformsEvents Examples

  2. Form Instantiation

  3. Event Handlers   MonthlyPayment Example

 

Part C: ASP.Net Controls

  1. The WebControl Class   ToUpper1 Example

  2. Web Pages

  3. Event Handlers and Wireup

  4. Viewing an ASP.Net Page in a Browser   ToUpper1, ToUpper2 Examples

 

Part D: Some Specific Web Controls

  1. Standard Control Members

  2. Standard WebControl Members

  3. TextBox

  4. Button   ToUpper1 Example

  5. Label

  6. Literal   ShowPoem Example

  7. RadioButton   Quiz1 Example

  8. ListItem   Animals Example

  9. RadioButtonList   Quiz2 Example

  10. CheckBox   Beverage Example

  11. DropDownMenuList   ChineseZodiac

  12. Image   Greeter3 Example

 

Part E:   HTML Controls

  1. Client-side vs. Server-side Controls

  2. Examples of HTML Controls   HtmlControls Example

 

Part F:   CurrencyConverter Project

 

Part G:   Exercise

  1. Look up the properties and events of these web controls and implement an ASP.Net web page that uses them:
      LinkButton   Calendar   Table