Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ControlEdit on a Command Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ControlEdit on a Command Bar

 Post Reply Post Reply
Author
Message
Noxy View Drop Down
Newbie
Newbie


Joined: 12 October 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Noxy Quote  Post ReplyReply Direct Link To This Post Topic: ControlEdit on a Command Bar
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.