Application.Exit alternative

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I must run my Windows Forms APP from my local Intranet...
But when I use Application.Exit or End (in VB.Net) to exit the App, it gives
me an error when a run that from a file share...

It's a SecurityException, I know, it's because it must call some
UnmanagedCode and don't have permission to do that from local Intranet... Why
that? Is there some alternativa to the Application.Exit,
System.Environment.Exit or End way?

Thx,
Rafa
 
Rafa® said:
I must run my Windows Forms APP from my local Intranet...
But when I use Application.Exit or End (in VB.Net) to exit the App, it
gives
me an error when a run that from a file share...

You can close a Windows Forms application by closing the main form
('Me.Close()'). This will exit the application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top