Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Listbox Sorted property - bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Listbox Sorted property - bug?

 Post Reply Post Reply
Author
Message
gibra View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 265
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post Topic: Listbox Sorted property - bug?
    Posted: 09 October 2017 at 11:15am

About listbox Sorted property, the help file says:

Description

Gets or sets a value indicating whether the items in the list box are sorted.

Property type

Read-write property <------


But if we set the Sorted property to True at runtime, the whole listbox will cleared. Ouch
gibra
CJ SuiteControl v: 13.x to 17.x
Windows 10 64bit
VS2017 - VB6.0 SP6
VS/VB 6.0 Installer v4.8 for Windows
Back to Top
olebed View Drop Down
Admin Group
Admin Group
Avatar

Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 654
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2017 at 4:19pm
Hello giblra,

Since the base of the listbox is derived from the MFC version the Sorted property can only be set at design-time. This is the same behavior as the MS version.

The listView control allows you to change the sorting order and so on at runtime.

I guess the only bug here is that the property is not read-only like the MS version. However we added recreation of control on setting this property so listBox is new and you should add items.

Regards,
 Oleksandr Lebed
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.