accessing control properties from subroutine

sweaterman

Newcomer
Joined
Oct 23, 2003
Messages
2
I am new to vb.net,

how do you access a controls properties located on a form from a a subroutine in a module? In vb6 you can do this

public sub do_something()

form1.label1.caption = "hello"

end sub

what is the equivalent to this in vb.net?

Thanks
sm
 
I used the following argument in the subroutine as suggested,

Public Sub RA(ByVal frm As WindowsApplication1.frmMain)

frm.lblCalc.Text = "text"

end sub

It works great.

Thanks a million.

sm
 
Back
Top