Geeks With Blogs
Flippin IT The blog of Andrew Winn February 2009 Entries
Getting a list of forms from your Windows Application
Strange as it maybe there is no built-in collection to give you a list of Forms in you Windows Application. This function returns a SortedList Collection of Forms in the Windows Application, VB Code: Public Shared Function GetForms() As Generic.SortedList(Of String, Type) Try ' Define the base type Dim baseType As Type = GetType(Form) Dim forms As New Generic.SortedList(Of String, Type) ' Get all types in the current assembly Dim types() As Type = System.Reflection.Assembly.... ......

Posted On Friday, February 27, 2009 4:54 PM

Copyright © Flippin IT | Powered by: GeeksWithBlogs.net