Hi all,

I'm working on a VB6 project and i'm a bit rusty as its been a while!!

I want to create one form that can be reused in several sections.

What I need is that my new form will know where it was called from. I can then grab some variables from the parent form, to populate my new form.

Does a form that's just been loaded know where the call to load came from?



It doesn't, unless you tell it! Meaning, create a public sub/function/routine that accepts what you want to pass as a parameter. As for reusing a form...

Dim F As Form1
Set F = New Form1
Load F
F.MyPublicSub "MyStringToPass"

Good Luck