![]() |
run commandbar_execute by another control |
Post Reply ![]() |
Author | |
simps ![]() Groupie ![]() Joined: 08 August 2007 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() Posted: 11 August 2007 at 1:35pm |
topic tells eveyrting. i want to run commandbar_execute event by another control
commandbar control in frm1
other control in frm2
commandbar execute event changed to public
what should i write to frm2 event of starter control?
frm1.controlbar1_execute (byval control as commandbarcontrol)
for example i want to run the control which has 1025 id number.
what should i write to blue line?
Thank you.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
You need find this control and pass it:
frm1.CommandBars.FindControl(id,...)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Zach ![]() Groupie ![]() Joined: 19 July 2006 Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
Not that its any of my business... but why wouldnt you just call directly whatever function you are calling when you execute the button?
|
|
![]() |
|
meaningoflights ![]() Groupie ![]() Joined: 27 October 2007 Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
Think about a plugin scenario, where you use interfaces and delegates (function pointers)... |
|
Jeremy Thompson (MCSD)
|
|
![]() |
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 |