SOLVED: Docked forms |
Post Reply |
Author | |
ElvisM
Senior Member Joined: 12 October 2006 Location: Venezuela Status: Offline Points: 129 |
Post Options
Thanks(0)
Posted: 03 August 2008 at 11:49pm |
Hi friends.
I don't know if this issue is about Codejock or VB6...
I'm using two forms, Form1 and Form2. The Form2 is docked into the Form1, in this program I can open until 3 instances of the Form1.
How can I refer from the form2 (docked) the Form1? if I don't know whats is the instance that's calling the form2.
Is very difficult to me explain you, cause my low level of english.
But, I'm going to try to explain you.
1) In ther form2 (docked) I need to execute a sub in the Form1.
2) I open Form1 that has the form2 docked.
3) When the form 2 executes the procedure in the form1, another form1 is automatcly opened. I dont know how to refer the apropiated form1.
I hope the you understandme..
Regards,
Elvis
|
|
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits Language: Visual Basic 2015 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Add variable in Form2 and set it when you create it.
Form2 frm = new Form2
frm.Frm1 = me
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |