C# Windows App VS2008 - Problem with passing values to a static method?
I have one class that I want to pass a string to a method in another classes textbox. When I make the method in the other class static I can see it but with the method it wont see its own textbox (txtMyBox). When I make the method non static it can see the textbox but the other class cannot see the method?!
Seems like a catch 22? Any help appreciated. I suspect fundametal failure to comprehend. See some attached code if it helps.
Tring to call the method...
trying to pass to this method in second class but when static wont see its own form objects (trying to update a textbox)
public partial class frmUnmigrated : Form
Global.frmUnmigratedRef = this;
public static String reportUnmigarted(String files)
// <<<<-------- I want to put txtBox.Text = files; here but NO!! wont see the text box