|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
say there are two forms form1 and form2.from1 calls the form2.Before it is called the form1 should be closed.
How do i do it ? The Close() command closes both the form thus ending the process. |
|
#2
|
|||
|
|||
|
hi
i think u should create sub main and set it as startup item in the project.u can include this sub a code to show form1 and run the application.in form1 u call form2 and then close form1.in this way u form1 only ll be closed.u must exit the application in any form u want by including Application.exit in button click handler or any handling event u want. |
|
#3
|
|||
|
|||
|
if form1 is the parent of form2, closing form1 will also close form2... you should try handling the event that creates form2 in your application rather than in form1.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > FormClose |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|