Print Page | Close Window

Help!

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=17036
Printed Date: 06 October 2024 at 7:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help!
Posted By: anthony_pacitto
Subject: Help!
Date Posted: 30 July 2010 at 5:40pm
Okay, I am new to this CodeJock CommandBar and i am currently am inserting a command bar in my visual basic 6.0 application and i was simply wondering how do i make it so that when i click a button on my commandbar it will open a form that i am wanting it to open? How do i do this?



Replies:
Posted By: Xander75
Date Posted: 18 August 2010 at 4:35am
Hi,

Have you checked the Samples that come with the Codejock Software? The VB6 CommandBars samples show how to do this using the CommandBars Execute method.


Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)

    Select Case Control.ID
        Case ID_MENU_OPENFORM:
            Unload frmMyForm
            frmMyForm.Show vbModal, Me
    End Select

End Sub




-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



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