Re: Windows Applications Hi,
I m getting the following exception while trying to place userControl in the form.
Failed to create component 'UserControl1'. The error message follows:
'System.NullReferenceException: Object reference not set to an instance of an object.
at Demo.UserControl1.UserControl1_Load(Object sender, EventArgs e) in D:\Work Area\Demo\UserControlComboBox.cs:line 38
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add (Control value)
at System.Windows.Forms.Form.ControlCollection.Add(Co ntrol value)
at System.Windows.Forms.Design.ParentControlDesigner. AddChildControl(Control newChild)
at System.Windows.Forms.Design.ParentControlDesigner. AddControl(Control newChild, IDictionary defaultValues)
at System.Windows.Forms.Design.ControlDesigner.Initia lizeNewComponent(IDictionary defaultValues)
at System.Drawing.Design.ToolboxItem....' |