Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.189.178.37] |
|
Сообщ.
#1
,
|
|
|
Собственно вот.
Долго гуглил, установил вот что: Ругается на List ItemData: Property ItemData in List could not be set. Ну и по другим комбо, и прочим, у кого есть ItemData. MS об этом говорит: Цитата Symptoms You may notice the following symptoms: When you upgrade a Microsoft Visual Basic 6.0 project to Visual Basic .NET or Visual Basic 2005, the data that is listed in the Properties window for the ItemData property is discarded. In Visual Basic 6.0, you can set the ItemData property for a ListBox or a ComboBox control at design time through the Properties window. In Visual Basic .NET or in Visual Basic 2005, the ItemData property no longer exists for these controls. Resolution To resolve this problem, use one of the following methods: If you upgraded a project from Visual Basic 6.0 to Visual Basic .NET or Visual Basic 2005, use the VB6.SetItemData method (from the Visual Basic 6.0 compatibility library) to fill the list. This method is usually called in the constructor of the form (the Public Sub New procedure). For a new Visual Basic .NET or Visual Basic 2005 project, use a class to hold the list items. For more information, refer to the "More Information" section. Но у меня этот компонент работал и работал хорошо. Еще неделю назад всё компилировалось, и не ругалось. А что вдруг произошло? Винда обновилась на что-то? Может уже кто сталкивался с такой хренью и уже есть пути решения? ПС Советовать перейти на дотнет - не предлагать=) У меня стоит отдельно 2015 студия, но старые проги тоже надо поддерживать... |
Сообщ.
#2
,
|
|
|
Восстановите VB6.OLB.
|
Сообщ.
#3
,
|
|
|
Akina
Ага, уже решил... А отчего так бывает? Или это пока что-то неведомое? |