Form closing or disposing
-
I want to dispose my previous form on the after select event of tree view control but when i try to do so i get the following exception message System.ObjectDisposedException: Cannot access a disposed object named "TreeView". Object name: "TreeView". This problem has definate solution but It is bit complicated and I m not able to understand it plz any one can help me out in simple words or even some one only tell me that how can i close one form another form ....I tried it to close it even by making its object on that form n then call its close function ...But it too doesnt work ...i m building Windows application In C# 2003.Thanx for Ur help :)
-
I want to dispose my previous form on the after select event of tree view control but when i try to do so i get the following exception message System.ObjectDisposedException: Cannot access a disposed object named "TreeView". Object name: "TreeView". This problem has definate solution but It is bit complicated and I m not able to understand it plz any one can help me out in simple words or even some one only tell me that how can i close one form another form ....I tried it to close it even by making its object on that form n then call its close function ...But it too doesnt work ...i m building Windows application In C# 2003.Thanx for Ur help :)
Implement IDisposable Interface in all the pages and use the dispose method !!!
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com http://jaiprakash.blog.com/
-
Implement IDisposable Interface in all the pages and use the dispose method !!!
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com http://jaiprakash.blog.com/