Login
Ох уж этот Билли...
218 просмотров
Перейти к просмотру всей ветки
Простой код на VB6.0
Me.lblDocumentType.Top = Me.lblPerformaDescriptions.Top
Me.lblDocumentType.Left = Me.lblPerformaDescriptions.Left
Me.lblDocumentType.Height = Me.lblPerformaDescriptions.Height
Me.lblDocumentType.Width = Me.lblPerformaDescriptions.Width
Должно писать как:
Dim iTop, iLeft, iHeight, iWidth As Long
iTop = Me.lblPerformaDescription.Top
iLeft = Me.lblPerformaDescription.Left
iHeight = Me.lblPerformaDescription.Height
iWidth = Me.lblPerformaDescription.Width
Me.lblDocumentType.Top = iTop
Me.lblDocumentType.Left = iLeft
Me.lblDocumentType.Height = iHeight
Me.lblDocumentType.Width = iWidth
Бо, присвавание property Height - невозможно - она read only(!), якобы...
Причем измененный код работает с Label и не работает с ComboBox...
Вообщем - я снова тащусь от биллиных, чтоб ему повылазило, поделок...