Posted 4 January 2025, 3:08 am EST
i updated my project to winforms for .net 8 in visual basic
Now there is a cash by selecting the 1st item in a combobox
' select start Portfolio
If C1ComBox_Depot.Items.Count > 0 Then
C1ComBox_Depot.SelectedIndex = 0
End If
with winforms 4.5.2 all was working fine
The error description is as follows:
System.InvalidCastException: “Overload resolution failed because no Public ‘<>’ can be called with these arguments:
‘Public Shared Operator <>(a As String, b As String) As Boolean’:
Argument matching parameter ‘b’ cannot convert from ‘ComboBoxItem’ to ‘String’.”