how to make him say that when loading the form the first element in the list is selected?
Hi, you can use the SelectedIndex property for a list, for example.
listbox1.selectedindex = 0
Using the selected index is the best way - listbox1.selectedindex = 0 (since this is a collection based on 0)
As far as I know, the first item is always selected unless another item is assigned. If you want to reset back to the first element to be selected, the best approach, in my opinion, is this:
listbox1.ClearSelection()
Source: https://habr.com/ru/post/1710178/More articles:Why do NSString comparisons: return NSOrderedSame when the strings are different? - objective-cIs there a standard for line break characters in web forms? - newlineExport Gridview to Excel in a web application - exportSVN - software for creating graphs, statistics and cute images regarding the evolution of the system - svnMaking DDE calls with Java - javaXSD file extension - xmlIs my ASP.NET session too big? - .netASP.NET minimizes and concatenates CSS files App_Themes - cssПриостановка между строками actionscript - actionscriptChange color of magnifier - iphoneAll Articles