Reflection


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I need to create some documentation and am using reflection to go through the project's in the solution and create a chm. So far it is coming along real nice but I cant figure out why this wont work.

I am trying to loop through a forms control's collection and only grab the controls that are Strataframe Controls, for instance a SF text box on the test form and the code below does not seem to find it. I only want to show contols that can be bound to a BO as I creating a Form level bound controls section.

For Each loCtl As System.Windows.Forms.Control In _form.Controls

If loCtl.GetType.IsSubclassOf(GetType(MicroFour.StrataFrame.UI.Windows.Forms.Textbox)) Then

--------Doesnt seem to work but if remoce the if statement it works

 

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Paul Chase - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Paul Chase - 18 Years Ago
                 Looks good :)
Trent L. Taylor - 18 Years Ago
Paul Chase - 18 Years Ago
                         I completely understand :)
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search