Print Page | Close Window

ControlEdit on a Command Bar

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=3022
Printed Date: 05 October 2024 at 11:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ControlEdit on a Command Bar
Posted By: Noxy
Subject: ControlEdit on a Command Bar
Date Posted: 12 October 2005 at 6:18pm
Hi there, i've recently started usind codejock's activeX....
I added a CommandBar to a form, in that same commandbar I have one button popup and inside that popup i have a edit box and a normal button.
I would like to know what do I have to do in order to obtain the content of the edit box when i click on the button.
Thank you all in advance



Replies:
Posted By: SuperMario
Date Posted: 19 October 2005 at 11:47am
If it is a CommandBar edit control:

    In the execute event, you must catch the id of the button you pressed and do somehting like this:

    Dim Control As CommandBarEdit
    Set Control = CommandBar.FindControl(, ID_TOOLS_UNDO, ,True)
    If Not Control Is Nothing Then
       Dim MyText as String
       MyText = Control.Text
    End If



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