| |

VerySource

 Forgot password?
 Register
Search
View: 2072|Reply: 12

Small problems with program exit

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-4 06:00:01
| Show all posts |Read mode
Ask for VB beginners:
    I create a popup window, Form1 pops up to Form2
When the program ends and exits, you can exit, but the program is still found in the task manager. If you do not exit completely, how can you exit completely?
Reply

Use magic Report

0

Threads

34

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-1-4 09:45:01
| Show all posts
How to play and how to retreat?
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 11:54:01
| Show all posts
I also encountered this problem
Master teaching
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 17:36:02
| Show all posts
Just add end when the program exits.
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 23:24:01
| Show all posts
Uninstall all forms
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-6 10:15:01
| Show all posts
unload form2
unload form1
end
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-6 11:27:01
| Show all posts
END
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-6 11:51:01
| Show all posts
My top
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-6 21:00:01
| Show all posts
With the following code, you can exit the process of the form in memory:
Private Sub Form_Unload (Cancel As Integer)
   If Not form name Is Nothing Then
   Unload form name
   End If

End Sub
Reply

Use magic Report

0

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-9 16:54:01
| Show all posts
unload me
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list