Print Page | Close Window

Listbox Sorted property - bug?

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=23460
Printed Date: 19 April 2024 at 10:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Listbox Sorted property - bug?
Posted By: gibra
Subject: Listbox Sorted property - bug?
Date 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



Replies:
Posted By: olebed
Date 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



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