Hi I am stuck on this programming assignment CHAPTER 7 PROGR

Hi, I am stuck on this programming assignment (CHAPTER 7; PROGRAMMING PROBLEM 2) and would like to know what controls to create in the designer and what code to write in the form.

Solution

using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.Design; // Note: add reference required: System.Design.dll namespace WindowsFormsApplication1 { [Designer(typeof(MyDesigner))] // Note: custom designer public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } // Note: property added [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ListView Employees { get { return listView1; } } } // Note: custom designer class added class MyDesigner : ControlDesigner { public override void Initialize(IComponent comp) { base.Initialize(comp); var uc = (UserControl1)comp; EnableDesignMode(uc.Employees, \"Employees\"); } } }
Hi, I am stuck on this programming assignment (CHAPTER 7; PROGRAMMING PROBLEM 2) and would like to know what controls to create in the designer and what code to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site