A
aurora10
Can ant body help me to see how to get access to all controls of the
Form for Sub in a different class.
Thanks in advance.
this is how it looks:
////////////////////////////////////////
Form1
...........
..........
pirvate sub ButtonClick(.......)
dim A as X = new X
A.Write()
end sub
---------------------
//////////////////////////--------------------
Class X
inherits Form1
public sub ()
Code for Write()
.............
Form1.textbox1........
Form1.textbox2.......
Form1.textbox3.......
etc
//it works OK if I put this Form1 before every textbox but I have them
more than 50 !
if i dont - it doesnt work ( but I put inherits Form1 there !)
How can I work this out without manualy typing every time Form1 ?
.....
end sub
end class
//////////////////////////////////////
Form for Sub in a different class.
Thanks in advance.
this is how it looks:
////////////////////////////////////////
Form1
...........
..........
pirvate sub ButtonClick(.......)
dim A as X = new X
A.Write()
end sub
---------------------
//////////////////////////--------------------
Class X
inherits Form1
public sub ()
Code for Write()
.............
Form1.textbox1........
Form1.textbox2.......
Form1.textbox3.......
etc
//it works OK if I put this Form1 before every textbox but I have them
more than 50 !
if i dont - it doesnt work ( but I put inherits Form1 there !)
How can I work this out without manualy typing every time Form1 ?
.....
end sub
end class
//////////////////////////////////////