There is a problem when displaying UserCotrol in the designer, there is the following code in the UserControl designer
var dir = new DirectoryInfo(@"AutoScenario"); LstScenario.Items.Clear(); foreach (FileInfo subDir in dir.GetFiles()) { LstScenario.Items.Add(subDir.Name); } the program works without problems but does not display UserControl in the designer while writing an error referring to the wrong path
ошибка: Could not find a part of the path 'C:\Windows\system32\AutoScenario'.