﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Reflection</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 10 Jun 2026 22:22:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Reflection</title><link>http://forum.strataframe.net/FindPost5337.aspx</link><description>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.&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;For&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Each&lt;/FONT&gt;&lt;FONT size=2&gt; loCtl &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; System.Windows.Forms.Control &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;In&lt;/FONT&gt;&lt;FONT size=2&gt; _form.Controls&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; loCtl.GetType.IsSubclassOf(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;GetType&lt;/FONT&gt;&lt;FONT size=2&gt;(MicroFour.StrataFrame.UI.Windows.Forms.Textbox)) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;--------Doesnt seem to work but if remoce the if statement it works&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 15 Dec 2006 17:46:42 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Reflection</title><link>http://forum.strataframe.net/FindPost5347.aspx</link><description>I completely understand :)&amp;nbsp;</description><pubDate>Fri, 15 Dec 2006 17:46:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Reflection</title><link>http://forum.strataframe.net/FindPost5346.aspx</link><description>Thanks it is coming along. I hate documentation:hehe: But this is acually kinda fun except for the Html. Thanks again for the help</description><pubDate>Fri, 15 Dec 2006 17:22:25 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Reflection</title><link>http://forum.strataframe.net/FindPost5342.aspx</link><description>Looks good :)</description><pubDate>Fri, 15 Dec 2006 15:05:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Reflection</title><link>http://forum.strataframe.net/FindPost5341.aspx</link><description>Thanks Trent I think I was looking for a way to get any control that was a strata frame control. Manly to be ablt to look for the Business object property and the field property. But I will just have to look at each type of control seperately.&lt;/P&gt;&lt;P&gt;Here is what the page look's like. Really the bottom 2 controls will go into another unbound controls section. &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/821f4a5c-ed81-41e7-be6d-19d4.png"&gt;</description><pubDate>Fri, 15 Dec 2006 14:59:27 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Reflection</title><link>http://forum.strataframe.net/FindPost5340.aspx</link><description>You also need to check to see if the control IS an SF control:&lt;/P&gt;&lt;P&gt;[codesnippet]loCtl.GetType() Is GetType(MicroFour.StrataFrame.UI.Windows.Forms.Textbox)[/codesnippet]&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;IsSubClass doesn't work for the class itself.</description><pubDate>Fri, 15 Dec 2006 14:17:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>