From other Form i want to set visibility for textBoxes on this form but i down’t know how to call TextBoxes and set property Visible = false.
I try with Enums but i still can’t solve problem. I can not cast or do anything. So how can i call textBox From form1 to form2…
i am using C# and CF 3.5
public enum VnosTextBoxType
{
Ean, PredmetObravnave, Tse, Kolicina, EnotaMere,
Lokacija, Zapora, Sarza, SarzaDobavitelja, Datumod,
DatumDo
}
this are names for all my TextBoxes. I have TextBoxes with names like txtEan, txtPredmetObravnave,..
What about writing on Form2 a method like this:
and call this form your Form1?
EDITED: