R
Ron
Hello,
I have added a Namespace to my vb.net project. The
namespace is the name of the project. Then I start the
project from Sub Main
Module1
Sub Main()
Application.Run(New MyProj.Form1)
End Sub
End Module
In a separate module, Module2, I want to reference Form1
so that I can write some data to a textbox, txtData. I
imported the Namespace MyProj to Module2.
Imports MyProj
Imports ... (everything else)
I tried referencing Form1 like this: MyProj.Form1... but
I could not see txtData in a dropdown after Form1. I know
that I could convert Module2 to a Class Module as pass in
txtData to the procedure in the Class Module. But is it
possible to reference Form1 (or really - txtData) in
Module2 as a standard module? Could I do this with the
Namespace?
Thanks,
Ron
I have added a Namespace to my vb.net project. The
namespace is the name of the project. Then I start the
project from Sub Main
Module1
Sub Main()
Application.Run(New MyProj.Form1)
End Sub
End Module
In a separate module, Module2, I want to reference Form1
so that I can write some data to a textbox, txtData. I
imported the Namespace MyProj to Module2.
Imports MyProj
Imports ... (everything else)
I tried referencing Form1 like this: MyProj.Form1... but
I could not see txtData in a dropdown after Form1. I know
that I could convert Module2 to a Class Module as pass in
txtData to the procedure in the Class Module. But is it
possible to reference Form1 (or really - txtData) in
Module2 as a standard module? Could I do this with the
Namespace?
Thanks,
Ron