Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - How to use markup in combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to use markup in combobox

 Post Reply Post Reply
Author
Message
faakher View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2010
Location: Saudia Arabia
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote faakher Quote  Post ReplyReply Direct Link To This Post Topic: How to use markup in combobox
    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
Back to Top
faakher View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2010
Location: Saudia Arabia
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote faakher Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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.