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.
 
Back
Top