I donīt know if this is the right area. Please sorry if not.
Well, first of all, thanx for your attention. Iīve searched the whole web (at last where google can see) for a solution, but i just canīt find.
The problem is the following: I want a list of all controlls in my project, not only on open forms. The reason is that i want to make an access control, and the admin will set which buttons each users can use.
what iīve got so far is:
Public Sub getallforms(ByVal sender As Object) Dim Forms As New List(Of Form)() Dim formType As Type = Type.GetType("System.Windows.Forms.Form") For Each t As Type In sender.GetType().Assembly.GetTypes() If UCase(t.BaseType.ToString) = "SYSTEM.WINDOWS.FORMS.FORM" Then MsgBox(t.Name) End If Next End Sub
This shows me all forms in project. But i cant access their controls. to you have any ideia of how doing what i want?
Thank you very much!