Zebra0.com

csharp arraysC# Windows Forms Programming

C# Windows Forms Programming

Learn C# (C sharp) in FREE step-by-step lessons.

Arrays in C#

Please study the material at each of the links below.

  1. Microsoft Reference: C# Arrays and Collections Microsoft Reference: C# Arrays and Collections: Read these white papers from Microsoft

  2. Introduction to Arrays Introduction to Arrays: An array is like a list. This shows how to declare and change values in an array
    /csharp/videos/csharp-array.php
  3. Variables as index of Arrays: Finds the total of all values in an array using a loop

  4. Out of bounds: An exception: If we try to access an element beyond the last element there is a run time error.

  5. Use timer to cycle through colors in an array Use timer to cycle through colors in an array: Global parallel arrays are used for the color names and colors. Make sure the subscript is not out of bounds.
    /csharp/videos/csharp-colorArray.mp4
  6. Colors: Add an array of strings to combo box: A global array of color names is created.
    In form load, a loop, adds the colors to combo box.

  7. Colors: Change the color to selected color in combo box: Uses parallel arrays: a string with color names and Color objects

  8. Wishes Wishes: At timer event lables are given random font, color and text from arrays.
    /csharp/videos/csharp-object-array.mp4
  9. Comparison of arrays and lists Comparison of arrays and lists: Examples of declaring arrays vs. lists
    /csharp/videos/array-list.mp4
  10. Advice: An application with a List and Timer Advice: An application with a List and Timer: A list of good advice is randomly selected and scrolls across the form.
    /csharp/videos/csharp-advice.mp4
  11. Season: A special type of search Season: A special type of search: An array of first day of season is searched to find where the selected date belongs.
    /csharp/videos/csharp-seasons.mp4
GlossaryGlossary for arrays lesson
Full Glossary