![]() |
run commandbar_execute by another control |
Post Reply
|
| Author | |
simps
Groupie
Joined: 08 August 2007 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: run commandbar_execute by another controlPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 August 2007 at 1:27am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 August 2007 at 8:27am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 November 2007 at 10:50pm |
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 |