In one of my code, I used a public static object of a form. In this code I have used Show() and Hide() function on this form, because I don't want to close this form as long as the main application is running. Now if I close the form from "Task manager - > Application Tab" this form gets disposed. I have function like the following:
public static fullScreen = null;
public FormFullScreen GetBackFullScreen()
{
if(fullScreen == null)
{
fullScreen = new fullScreen();
}
return fullScreen;
}
Now when I call "GetBackFullScreen().Show()", I get can not show Disposed Object form. Can anybody suggest a solution? Thanks in advance.