visucal c sharp problems with form properties and classes
<p>i'm new to visual c sharp. i have a form that has some methods defined on the form for clearing textboxes... i then have another .cs file that is in my project called tools.cs with a class called "tools"  .. both the "tools" class and the form class for my form are within the same namespace...</p>

<p>i want to be able to access any of the methods from my form within the tools .cs file and class.  </p>

<p>also i should note i actually have 2 forms, main_frm and app_form .  main_frm is parent MDI and app_form is child...</p>

<p>i have tried using </p>

<pre><code>    Form currentform = form.activeform;
</code></pre>

<p>within the tools class in the tools.cs file, but that always is set to main_frm.</p>

<p>so i was trying to figure out how to access the current active app_form and not end up creating a new instance of app_form such as:</p>

<pre><code>    app_form current_app_form = app_form.activeform;
</code></pre>

<p>but that doesn work... again from the tools class i want to be able to call a method on the current app_form that is active or create a new name to reference the current app_form so that i can use:</p>

<pre><code>    current_app_form.my_method();
</code></pre>
