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


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
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 19.x
Windows 10 64bit
VS2019 - VB6.0 SP6
<a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
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

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.