I have an application in which i have added a usercontrol on the form. When i check this.parentForm in the userControl constructor it gives a null reference >
this.parentForm
for what did you added this line no need actually, remove this line
if (this.ParentForm != null)//ParentReference is null public UserControl1() { InitializeComponent(); MessageBox.Show("Hi");//Does Not get Called }