nicholasting
Programmer
i'm am vb6 programmer, is a beginner of vb2008. i faced some difficulties that not exists in vb6. please help:-
i have 2 forms: Form A and Form B
Form A call Form B. in Form B, once i close Form B, i will need to pass some data from form B back to Form A without refresh my Form A.
in vb6, i can write as in FormB
private sub cmdOK_Click()
FormA.Text1 = FormB.Text1
FormA.Text2 = FormB.Text2
FormA.Text3 = FormB.Text3
Me.Close
end sub
in vb2008 i cant write like this if i using the method
Dim objFormA = new FormA
however, if i use the method as like VB6,
FormB.show vbModal
i encountered FormB will hold the memory. everytime i called the FormB it will show whatever i was key in previously unless i quit the application.
any idea guys?
regards,
nic
i have 2 forms: Form A and Form B
Form A call Form B. in Form B, once i close Form B, i will need to pass some data from form B back to Form A without refresh my Form A.
in vb6, i can write as in FormB
private sub cmdOK_Click()
FormA.Text1 = FormB.Text1
FormA.Text2 = FormB.Text2
FormA.Text3 = FormB.Text3
Me.Close
end sub
in vb2008 i cant write like this if i using the method
Dim objFormA = new FormA
however, if i use the method as like VB6,
FormB.show vbModal
i encountered FormB will hold the memory. everytime i called the FormB it will show whatever i was key in previously unless i quit the application.
any idea guys?
regards,
nic