I have tryed to get this question answered but no one has been able to give me a answer.
I have a vb.net 2003 project i am working on and i am using a function that requires a textbox on the form.
Now the down side of this is this function can not be called from the form it has to be used in the module and then display data in the textbox.
Now in vb6 this was easy i would do the code like.
Form1.text1.tex t = whatever
in vb.net this is diff i can not access the form1 nor can i have the text box to display the data.
My question is simple how do i get the module to be able to access a object from with inside the module rather then have to be called from with inside the form.
i did try to dim frm as a new form1
but that lead to some errors and was not really successful so i am posting here hoping that someone here can help me out.
I have a vb.net 2003 project i am working on and i am using a function that requires a textbox on the form.
Now the down side of this is this function can not be called from the form it has to be used in the module and then display data in the textbox.
Now in vb6 this was easy i would do the code like.
Form1.text1.tex t = whatever
in vb.net this is diff i can not access the form1 nor can i have the text box to display the data.
My question is simple how do i get the module to be able to access a object from with inside the module rather then have to be called from with inside the form.
i did try to dim frm as a new form1
but that lead to some errors and was not really successful so i am posting here hoping that someone here can help me out.