Print Page | Close Window

How to use markup in combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=19021
Printed Date: 19 September 2024 at 3:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use markup in combobox
Posted By: faakher
Subject: How to use markup in combobox
Date Posted: 06 October 2011 at 5:13am
Hi,
some one tell me how to use markup feature in combobox.
i want to add 3 items in combo, each item with different font.
How can I achieve this?


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows XP Professional - SP2
Language: Visual Basic 6.0 SP6



Replies:
Posted By: faakher
Date Posted: 23 October 2011 at 7:46am
please for god sake someone tell me how to do this? Cry

21 views and no one tried to help me out.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.1
Platform: Windows XP Professional - SP2
Language: Visual Basic 6.0 SP6


Posted By: SuperMario
Date Posted: 08 November 2011 at 1:06pm
The suite controls sample shows how:

    For i = 0 To 32
        ComboBoxMarkup.AddItem "<StackPanel Orientation='Horizontal'>" & _
            "<Image VerticalAlignment='Center' Source='" & 1000 + i & "'/>" & _
            "<TextBlock Padding = '2' VerticalAlignment='Center'>" & LanguageNames(i) & "</TextBlock></StackPanel>"
    Next i
    ComboBoxMarkup.ListIndex = 8
    ComboBoxMarkup.DropDownItemCount = 10



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