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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PASSING VALUES FORM TO FORM

Status
Not open for further replies.

lode

Programmer
Nov 8, 2001
208
BE
Does anybody know how i can pass values between forms ?

Thanks.
 
something like this

in form1
Code:
class form1 inherits...

public var1 as string

...

private sub button1_click(...) handles button1.click

dim tempform2 as new form2
var1 = "this comes from form1"
tempform2.callingform = me
tempform2.show

end sub

then in form2 create a textbox and do the following

Code:
class form2 ...

public callingform as form1

...

private sub form2_onload(...) handles mybase.onload

textbox1.text = callingform.var1

end sub

Christiaan Baes
Belgium

[italic]What a wonderfull world - Louis armstrong[/italic]
 
Hi chrissie1,

Thanks a lot !!

Bedankt, ben ook van Belgie.

Lode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top