Hello guys .. iam new to this forum and i have been coding for VB 6 for along time.. when i got my VS.NET i read a book about VB.NEt but didnt mention anything about my problem... i fully understand what is meant by Objects and members or object since i have been using these in my programs ...
anywayz i am having a problem accessing the objects of a form from another..
in VB 6 u would do
Form1.Text1.text = "hi"
but when i do this in VB.NET it dosnt work...
so i searched for somethings
and i knew i have to declare a variable as form1 and set it to use it from form2...
i dont know whats the point of this
can somebody explain as much as possible about accessing objects with some code snipest so i can understand
my code is
it says here after i run that i my client objects is nothing
although i declare it like this
thnx for help in advance
anywayz i am having a problem accessing the objects of a form from another..
in VB 6 u would do
Form1.Text1.text = "hi"
but when i do this in VB.NET it dosnt work...
so i searched for somethings
and i knew i have to declare a variable as form1 and set it to use it from form2...
i dont know whats the point of this
can somebody explain as much as possible about accessing objects with some code snipest so i can understand
my code is
Code:
Dim Frm as new Form1
Frm.client.connect(host, port) ' client is a socket class
although i declare it like this
Code:
Public withevents Client as Xsock ' this is the original class name
thnx for help in advance