Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

9th june

659 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

9th june

  1. 1. ADVANCED C#(Contd..) &WINDOWS FORMS<br />9th June 2010<br />
  2. 2. Exception Handling<br />
  3. 3. Collections<br />Definition :<br />Collections are enumerable data structures that can be assessed using indexes or keys. <br />
  4. 4. System.Collections namespace<br />  IEnumerable<br /> IEnumerator<br />  ICollection<br /> IList<br />  IDictionary<br />
  5. 5. ICollection<br />System.Collections.Stack<br />System.Collections.Queue<br />System.Collections.BitArray<br />System.Collections.Specialized.NameValueCollection<br />
  6. 6. ArrayList<br />
  7. 7. StringCollections<br />
  8. 8. Stack<br />The Stack class is one that provides a Last-in-First-out (LIFO) collection of items of the System.Object type. <br />
  9. 9. Queue<br />First-in-First Out (FIFO) Approach<br />
  10. 10. Hashtable<br />
  11. 11. Windows Form<br />Windows Forms is the name given to the graphical application programming interface (API) included as a part of Microsoft's.NET Framework, providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code. <br />
  12. 12. Architecture of WinForms<br />A Windows Forms application is an event-driven application supported by Microsoft's .NET Framework. Unlike a batch program, it spends most of its time simply waiting for the user to do something, such as fill in a text box or click a button.<br />
  13. 13. Empty Form<br />using System;using System.Windows.Forms;public class EmptyForm : System.Windows.Forms.Form{  public EmptyForm()  {  }  public static int Main()  {    Application.Run(new EmptyForm());    return 0;  }       }<br />
  14. 14. My First Window<br />                        private void InitializeComponent()        {            this.Size = new System.Drawing.Size(300,300);            this.Text = "MyFirstWindow";        }                public static void Main(string[] args)         {            Application.Run(new MyFirstWindow());        }    }<br />using System;    using System.Drawing;    using System.Collections;    using System.ComponentModel;    using System.Windows.Forms;    using System.Data;        public class MyFirstWindow : System.Windows.Forms.Form    {        public MyFirstWindow()        {            InitializeComponent();        }<br />

×