Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Sorted Property in ComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sorted Property in ComboBox

 Post Reply Post Reply
Author
Message
giro21k View Drop Down
Newbie
Newbie
Avatar

Joined: 08 July 2008
Location: Colombia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote giro21k Quote  Post ReplyReply Direct Link To This Post Topic: Sorted Property in ComboBox
    Posted: 30 January 2009 at 2:04pm
Good Days:
 
In ComboBox if add items and activate sorted property dont sort.
 
p.e.j.
 
combo.additem "A"
combo.additem "Hola"
combo.additem "Archivo 4 [Depen]"
combo.sorted=true
 
any idea
 
Thanks
Back to Top
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2009 at 4:14am
Originally posted by giro21k giro21k wrote:

Good Days:
 
In ComboBox if add items and activate sorted property dont sort.
 
p.e.j.
 
combo.additem "A"
combo.additem "Hola"
combo.additem "Archivo 4 [Depen]"
combo.sorted=true
 
any idea
 
Thanks
 
choose between:
 
1) set sorted=true property at design time
 
2) use code like this:
 
     ComboBox1.Sorted = True
     ComboBox1.EnableMarkup = False
 
Both solution are  but working.
 
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2009 at 6:15am
Hi,
 
yes, Sorted have to be set before you add items.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Albert1 View Drop Down
Groupie
Groupie
Avatar

Joined: 01 February 2007
Location: Italy
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote Albert1 Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2009 at 10:32am
Originally posted by oleg oleg wrote:

Hi,
 
yes, Sorted have to be set before you add items.
 
Oleg, try it ...
 
wrong sort:
 

    With ComboBox1
        .Sorted = True
        .AddItem "C"
        .AddItem "A"
        .AddItem "B"
    End With
 
 
correct sort:
 

    With ComboBox1
        .Sorted = True
        .EnableMarkup = False   ' the magic wand !!!
        .AddItem "C"
        .AddItem "A"
        .AddItem "B"
    End With
 
simply a bug .
 
 
 
 
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.