10th june

635 views

Published on

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
635
On SlideShare
0
From Embeds
0
Number of Embeds
192
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

10th june

  1. 1. WINDOWS FORM<br />10thJune 2010<br />
  2. 2. LifeCycle of Windows Forms<br /><ul><li>Move: This event occurs when the form is moved. Although by default, when a form is instantiated and launched, the user does not move it, yet this event is triggered before the Load event occurs.
  3. 3. Load: This event occurs before a form is displayed for the first time.
  4. 4. VisibleChanged: This event occurs when the Visible property value changes.
  5. 5. Activated: This event occurs when the form is activated in code or by the user.
  6. 6. Shown: This event occurs whenever the form is first displayed. 
  7. 7. Paint: This event occurs when the control is redrawn.
  8. 8. Deactivate: This event occurs when the form loses focus and is not the active form.
  9. 9. Closing: This event occurs when the form is closing.
  10. 10. Closed: This event occurs when the form is being closed.</li></li></ul><li>Delegates<br />A delegate in C# allows you to pass methods of one class to objects of other classes that can call those methods. <br />Technically delegateis a reference type used to encapsulate a method with a specificsignature and return type.<br />They act as FUNCTION POINTERS<br />
  11. 11. Types of Delegates<br />Single Delegate (System.Delegate)<br />public delegate void Myfunction(string,System.Int32) ; <br />public delegate boolMyFunctionOne();<br />Multi-Cast Delegates (System.MulticastDelegate )<br />A delegate that contains an invocation list with multiple methods.<br />Combine += & Remove -=<br />
  12. 12. Event Handlers<br />
  13. 13.
  14. 14. Windows Forms Designer<br />Form1.resx & Form1.Designer.cs<br />This is the main playing ground when you are laying out your user interface.<br />
  15. 15. Windows Form Controls<br />Basic Properties <br />
  16. 16. Events Associated<br />
  17. 17. Basic Controls<br />Button<br />Label & LinkLabel<br />Textbox<br />RadioButton and CheckBoxControls<br />RichTextBox Control<br />ListBox and CheckedListBox<br />ListViewControl<br />StatusBar<br />PictureBox<br />TabControl<br />

×