diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 484f0cf6..275182cf 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net45/SunnyUI.dll b/Bin/net45/SunnyUI.dll index 180444ef..fde90b9e 100644 Binary files a/Bin/net45/SunnyUI.dll and b/Bin/net45/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index b47b9621..62edbafc 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index d47c4b3c..ff9b693b 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIListBox.cs b/SunnyUI/Controls/UIListBox.cs index 29c39863..eb2135d8 100644 --- a/SunnyUI/Controls/UIListBox.cs +++ b/SunnyUI/Controls/UIListBox.cs @@ -638,16 +638,17 @@ namespace Sunny.UI } else { - var list = Items[e.Index].GetType().GetNeedProperties(); - foreach (var info in list) - { - if (info.Name == DisplayMember) - { - object defaultobj = info.GetValue(Items[e.Index], null); - showText = defaultobj.ToString(); - } - } + //var list = Items[e.Index].GetType().GetNeedProperties(); + //foreach (var info in list) + //{ + // if (info.Name == DisplayMember) + // { + // object defaultobj = info.GetValue(Items[e.Index], null); + // showText = defaultobj.ToString(); + // } + //} + showText = GetItemText(Items[e.Index]); if (showText.IsNullOrEmpty()) { showText = Items[e.Index].ToString();