I have a main form called MainForm and a class called ProductDatabase.
In the class i have the following methode:
public GetDisplayText(DataRow row)
MainForm.txtFoodName.text = "" + row[ProductField.Name]; <======
And the methode in the MainForm that calls the methode of the class looks like this:
private void lstvFoodDB_AfterSelect(object sender, TreeViewEventArgs e)
But the methode that i have marked with the arrow doesn't work, because i can't get
access to the component txtFoodName on the MainForm.
Who knows the answer and is willing to help me...