Hi All,
I need some guidance here...How does one close or unload all open forms in VB.Net. Can someone please help me out in this regard?
Thanks very much.
hari12341
0
Newbie Poster
Recommended Answers
Jump to PostApplication.Exit() :D
Jump to Posthmn:
for each XFrm in forms unload XFrm next XFrm
?
Jump to PostThis is for VB Express 2005:
For i As Integer = My.Application.OpenForms.Count - 1 To 0 Step -1 If My.Application.OpenForms.Item(i) IsNot Me Then My.Application.OpenForms.Item(i).Close() End If Next i
All 11 Replies
Inanna
29
Junior Poster in Training
hari12341
0
Newbie Poster
hari12341
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Inanna
29
Junior Poster in Training
waynespangler
63
Posting Pro in Training
syeedsan
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
jireh
3
Posting Whiz
yassha
0
Newbie Poster
sathish_ahs10
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.