Hi everyone. I am new here. I am actually new to VB. I am proficient in C++, Perl, PHP and Java. I recently started to learn VB because my employer decided that they wanted an application written in VB so down that path I went. I am really starting to like VB but unfortunately I am running into a few stumbling blocks.
I have one form that is instatiated when the main function starts and I have a module which has my other functions in it. I am trying to populate the fields on the original form with the values from the functions in the module. I have declared the variables on the form as "public shared" variables. When I call the variables, for example form1.TboxDisp.text = "xxxx" from the module I get Object reference not set to an instance of an object.
I dont understand this because if my variable is a publicly shared variable and it is seen from one form to the other it should be able to populate the other form with the values.
Any help here would be great.
Thanks
I have one form that is instatiated when the main function starts and I have a module which has my other functions in it. I am trying to populate the fields on the original form with the values from the functions in the module. I have declared the variables on the form as "public shared" variables. When I call the variables, for example form1.TboxDisp.text = "xxxx" from the module I get Object reference not set to an instance of an object.
I dont understand this because if my variable is a publicly shared variable and it is seen from one form to the other it should be able to populate the other form with the values.
Any help here would be great.
Thanks