Print Page | Close Window

ComboBox Clicked Event

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=591
Printed Date: 31 October 2024 at 10:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ComboBox Clicked Event
Posted By: blockwood
Subject: ComboBox Clicked Event
Date Posted: 01 April 2004 at 9:03am
Hi,

I have a combobox control in my command bar. How can I determine the value selected by the user, what event should I look for. Any code snippet would be appreciated.

thx - Brian



Replies:
Posted By: Bjarne
Date Posted: 01 April 2004 at 9:14am

Hi Brian,

Lets say you have a ComboBox with the ID of ID_FONTCOMBO, and you want to set the Font of an RTF Text box to the font displayed in the ComboBox

In the Execute Event og CommandBar you could put the following:

Private Sub cmdBar_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
Dim mCombo          As ICommandBarComboBox

        Select Case Control.ID
        Case ID_FONTCOMBO
             Set mCombo = Control.Parent.FindControl(, Control.ID, , True)
             rtfEdit.SelFontName = mCombo.Text
        End Select
   
End Sub

Hope this helps

Bjarne



Posted By: SuperMario
Date Posted: 01 April 2004 at 9:17am
Take a look at the dynamic popups sample.




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