Exit program

  • Thread starter Thread starter Phoebe.
  • Start date Start date
P

Phoebe.

Hi, Good Day!

I'd like to find out what statement shd i write to exit my vs.net program in
vb.net.
i.e. close everything, is tht possible?

Can someone help?
Thanks in advanced.

rgds,
Phoebe.
 
Thanks Bernie,

But when i insert the statement below, there's an error saying
"'Exit' is not a member of 'System.Web.HttpApplicationState'"

What could be the reason?
Thanks again.

Phoebe.
 
Phoebe,

When we start with the most simple situation.

Me.close in your form1 closes the application in a windowform application if
you did not do things as application.start etc..

I hope this helps?

Cor
 
Hello Phoebe
Maybe your are using ASP.NET ... I'm not sure but maybe
there's application.exit()

Kind Regards
Jorge Cavalheiro
-----Original Message-----
Thanks Bernie,

But when i insert the statement below, there's an error saying
"'Exit' is not a member
of 'System.Web.HttpApplicationState'"
 
Thanks Cor.

I'm in webform application and not windowform application.

Can you help?
Thanks again.

Phoebe.
 
Hi Phoebe,

You can do a Session abort (although with that I am also not sure it abort
direct I thought it still was living some time). With the page it is as I
wrote me.close

But you cannot delete a page from a user his screen from the server side
direct.

But I think you can use (Page .registerstartupscript and then some
javascript to close the window) although I think that the user will be
suprised (As I remember me it right with that you closes IE).

http://msdn.microsoft.com/library/d...ref/html/frlrfSystemWebUIPageMembersTopic.asp

For the close script you can just google for javascript close window I
think.

I hope this helps,

Cor
 
what do you want to do exactly?

exit the application like in a windows application has no sense in a
webapplication


dominique
 
* "Phoebe. said:
I'd like to find out what statement shd i write to exit my vs.net program in
vb.net.
i.e. close everything, is tht possible?

Close the main form.
 
Back
Top