You need a reference to the shell in order to call dispose on it. Make a reference to the shell available to your method somehow and then call "theShell.dispose()" where "theShell" is the name of the shell reference variable.
On Jun 6, 2011, at 10:56 AM, John J. Boyer wrote:
In one of my methods the compiler complains about the statement Shell.dispose(); It says I can't call a nonstatic method in a staticcontext. The method in which this statement occurs is not static. It wasmoved from another class in which there was no problem. I can provide the code, of course, but I thought you might be able to answer this one from your experience. Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities