GetComponent With Reflection
<p>I am trying get a Form's BindingSource using Reflection. The following code is what I've tried so far although it has an error:</p>

<pre><code>public class MyClass :Form
{
    BindingSource bs = new BindingSource();
}

public static class Class2
{
    public static BindingSource GetBindingSource(string FieldNameP, Form FormP)
    {
        BindingSource Bs = null;

        var info=FormP.GetType().GetField(FieldNameP);
        if(info != null)
        {
            Bs = (BindingSource)info.GetValue(null)
        }

        return Bs;
    }
}
</code></pre>
