Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 forms

Author  Topic 

eliastannoury
Starting Member

11 Posts

Posted - 2006-05-21 : 05:38:00
can anyone tell me what is the equivalent script in VB.NET for the following code?


form1.label1.caption= text1.text

i want that when i press the buttom submit, the content of the text box in form2 (current form) will be displayed in the label1 of the form1.

i know it in vb6 but what would it be in vb.net

Thank you

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-21 : 07:17:29
if you accessing the form from other class then you need to create the object of that class
and then only you can access the controls of that object

but from the same class then
label1.Text = text1.Text



If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page
   

- Advertisement -