The prototype for the launcher was tested and evaluated on board USS Norton Sound. Originally, the system was only intended to fire the RIM-66 Standard missile, but the height of the Mk 41 was increased to accommodate the larger Tomahawk missile. If you want to display the elements of that array, do this: for (int i = 0 i < dirs.Length i++)Īnd if you want to display only the folder names and not the full path, do this: for (int i = 0 i < dirs.Refinement of the initial concept of Aegis system in the 1960s continued through the 1960s and 1970s, and the Mk 41 was conceived in 1976. Is not of type string to the itemcollection, the string return by the object's ToString Method will be displayed.ĭirs here is of type 'string' (an array of strings) and not of type 'string', therefore what you see in the listbox is "System.String" since that is what dirs.ToString() returns. It does not discriminate between "C:\blablabla\filename.ext" "filename.ext" and "Hello, Im a string containing some random text.". No, your listbox is just displaying strings (a series of characters). If it's still not working then you need to post a complete working sample because there is likely some other code that is causing the item list to be cleared or reset or something.
Something like this to verify that the CheckedListBox is not being cleared elsewhere. If in doubt, replace your Directory.GetFiles line with If this works, then you should be able to add other strings.