Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
12736 | Apr 9,2004 03:54 PM UTC | Apr 13,2004 04:25 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
private void Attach() { if(this.parentControl != null) { this.parentControl.LostFocus += new EventHandler(this.ParentLostFocus); Form parentForm = FindFormHelper.FindForm(this.parentControl); if (parentForm != null) { parentForm.Resize += new EventHandler(this.MenuCloseEvent); parentForm.Move += new EventHandler(this.MenuCloseEvent); parentForm.Deactivate += new EventHandler(this.FormDeactivate); if (parentForm.ParentForm != null) { parentForm.ParentForm.Move += new EventHandler(this.MenuCloseEvent); parentForm.ParentForm.Deactivate += new EventHandler(this.FormDeactivate); } } } }If you own the source code, you can step into this method to pinpoint what is null, and why it is being referenced. If you can attach a small sample, we can try to spot something here.
>private void Attach() >{ > if(this.parentControl != null) > { > this.parentControl.LostFocus += new EventHandler(this.ParentLostFocus); > Form parentForm = FindFormHelper.FindForm(this.parentControl); > if (parentForm != null) > { > parentForm.Resize += new EventHandler(this.MenuCloseEvent); > parentForm.Move += new EventHandler(this.MenuCloseEvent); > parentForm.Deactivate += new EventHandler(this.FormDeactivate); > if (parentForm.ParentForm != null) > { > parentForm.ParentForm.Move += new EventHandler(this.MenuCloseEvent); > parentForm.ParentForm.Deactivate += new EventHandler(this.FormDeactivate); > } > } > } >} >> >If you own the source code, you can step into this method to pinpoint what is null, and why it is being referenced. > >If you can attach a small sample, we can try to spot something here. GridSamp_7146.zip NetCtrlTest_8891.zip
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.