Print Page | Close Window

run commandbar_execute by another control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7777
Printed Date: 18 June 2025 at 12:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: run commandbar_execute by another control
Posted By: simps
Subject: run commandbar_execute by another control
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: Zach
Date 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?
 
 


Posted By: meaningoflights
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net