Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Run A function ?

Status
Not open for further replies.

edelman

Instructor
Jun 7, 2002
12
IL
Hello

i want same help :

how can i run a function from Form 1 that is in form 2

thanks
 
Make the Function in Form2 Public:


' Form2
' assuming there is a TextBox on Form2 named txtSomeTextBox
Public Function GetText()

GetText = txtSomeTextBox.text

End Function


'Form1
dim frm as new Form2
frm.txtSometextBox.text = "hello"
msgbox frm.GetText()




Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top