Object reference problem in a windows application.
-
Hi I am developing an windows application in C#.Net(2003). My form has some textboxes, button and a datagrid. The functionality of the application is in a DLL. The functionality is like this. Enter input parameters in text boxes (one parameter belongs to time) Click Start Button ==> the control goes to the DLL. based up on the time it has to perform the functionality.(suppose for example if we give 4 hours) After completing a specific period (for example say 1hour) we have to enter a row in the data grid. THis action is done from the form. For this i am using a timer in the form, on the elapsed time i am entering a row to the data grid by using a datatable. Also notice one thing, I am using notify icon to show my application in system tray when it is minimized. If the addition of row is done when the form is in the minimized state, if i double click on the icon in the system tray then it is giving an exception "Object reference is not set" from the code in the notify icon Click. In this i am using a statement this.ShowInTaskbar = true; when the form is in normal state, adding a row to grid is happening correctly but the form is not responding after performing this action. Any one please help me. Thanks in Advance Thanks and Regards Ramu