简体   繁体   中英

Close all open forms (WM 6.5/VB.NET)

Is it possible to close all the open forms in a Windows Mobile 6.5 project using VB.NET?
I found some approaches for a desktop solution, something like:

For Each f As Form In My.Application.OpenForms
    f.Close()
Next


...which seems not possible in WM6.5?

Any idea or approach to do this is much appreciated.

Close all forms except the one where this code is

            For i = System.Windows.Forms.Application.OpenForms.Count - 1 To 1 Step -1
                Dim form As Form = System.Windows.Forms.Application.OpenForms(i)
                form.Close()
            Next i

'Sorry for my poor english

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM