tailieunhanh - Custom Controls
Custom Controls's Objectives is introduction to custom control; creating custom control; using custom control; creating and using composite control. It includes Features; Types of custom controls; Steps to create Simple Custom controls. | Custom Controls Objectives Features Types of custom controls Composite Inherit the UserControl class Combine som controls Extended Inherit any Windows Form control Custom Inherit Control class Steps to create Simple Custom controls Adding properties using Accessors Associating events with custom controls public event EventHandler Leave += new (the_fun) public void the_fun(object sender , EventArgs e) { . } Steps for using custom controls Using custom controls programmaticaly Namespace of CustomControl Custom controls (cont ) [@ToolboxBitmap(“C:\\”) public partial class CustomControl : UserControl { ----------------------------------- } Inherit existing controls Inherit existing controls (ctn) Composite Control Step by Step You can create Window Control Library project Summary . | Custom Controls Objectives Features Types of custom controls Composite Inherit the UserControl class Combine som controls Extended Inherit any Windows Form control Custom Inherit Control class Steps to create Simple Custom controls Adding properties using Accessors Associating events with custom controls public event EventHandler Leave += new (the_fun) public void the_fun(object sender , EventArgs e) { . } Steps for using custom controls Using custom controls programmaticaly Namespace of CustomControl Custom controls (cont ) [@ToolboxBitmap(“C:\\”) public partial class CustomControl : UserControl { ----------------------------------- } Inherit existing controls Inherit existing controls (ctn) Composite Control Step by Step You can create Window Control Library project Summary Summary | Custom Controls Objectives Features Types of custom controls Composite Inherit the UserControl class Combine som controls Extended Inherit any Windows Form control Custom Inherit Control class Steps to create Simple Custom controls Adding properties using Accessors Associating events with custom controls public event EventHandler Leave += new (the_fun) public void the_fun(object sender , EventArgs e) { . } Steps for using custom controls Using custom controls programmaticaly Namespace of CustomControl Custom controls (cont ) [@ToolboxBitmap(“C:\\”) public partial class CustomControl : UserControl { ----------------------------------- } Inherit existing controls Inherit existing controls (ctn) Composite Control Step by Step You can create Window Control Library project Summary . | Custom Controls Objectives Features Types of custom controls Composite Inherit the UserControl class Combine som controls Extended Inherit any Windows Form control Custom Inherit Control class Steps to create Simple Custom controls Adding properties using Accessors Associating events with custom controls public event EventHandler Leave += new (the_fun) public void the_fun(object sender , EventArgs e) { . } Steps for using custom controls Using custom controls programmaticaly Namespace of CustomControl Custom controls (cont ) [@ToolboxBitmap(“C:\\”) public partial class CustomControl : UserControl { ----------------------------------- } Inherit existing controls Inherit existing controls (ctn) Composite Control Step by Step You can create Window Control Library project Summary Summary
đang nạp các trang xem trước