Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - run commandbar_execute by another control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

run commandbar_execute by another control

 Post Reply Post Reply
Author
Message
simps View Drop Down
Groupie
Groupie


Joined: 08 August 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote simps Quote  Post ReplyReply Direct Link To This Post Topic: run commandbar_execute by another control
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Zach View Drop Down
Groupie
Groupie


Joined: 19 July 2006
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zach Quote  Post ReplyReply Direct Link To This Post 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?
 
 
Back to Top
meaningoflights View Drop Down
Groupie
Groupie


Joined: 27 October 2007
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote meaningoflights Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2007 at 10:50pm
Originally posted by Zach Zach wrote:

Not that its any of my business... but why wouldnt you just call directly whatever function you are calling when you execute the button?
 
 


Think about a plugin scenario, where you use interfaces and delegates (function pointers)...
Jeremy Thompson (MCSD)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.049 seconds.