D
dennist
In VB6 I was able to define a public form gForm. In some
form, I'd set gForm = Me. In a procedure afterwords I
had access to all tha forms controls, e.g.
gForm.txtTitleText.Text.
There seems to be no such ability in WindowsForms. If I
call a prcedure I need to include Me as a form argument.
For example, cls1.sub1(me), where Me = Form1, for
instance.
In sub1 I need the argument to say,
PublicSub1(frm as Form1)
This can be cumbersome. I can only see a tremendous
overloaded constructor. If 10 forms might be calling
that procedure the process is out of hand.
Is there a more economical way of doing this in
WindowsForms. vb.net seems a step backward from vb6 as a
RAD tool. It's even worse in ado.net.
dennist
form, I'd set gForm = Me. In a procedure afterwords I
had access to all tha forms controls, e.g.
gForm.txtTitleText.Text.
There seems to be no such ability in WindowsForms. If I
call a prcedure I need to include Me as a form argument.
For example, cls1.sub1(me), where Me = Form1, for
instance.
In sub1 I need the argument to say,
PublicSub1(frm as Form1)
This can be cumbersome. I can only see a tremendous
overloaded constructor. If 10 forms might be calling
that procedure the process is out of hand.
Is there a more economical way of doing this in
WindowsForms. vb.net seems a step backward from vb6 as a
RAD tool. It's even worse in ado.net.
dennist