load textbox if combobox is readonly

This commit is contained in:
Jonathan Jenne 2019-10-17 15:49:29 +02:00
parent a2268dc7fa
commit e2ea5583ae

View File

@ -622,7 +622,10 @@ Public Class frmValidator
oMyControl = ClassControlCreator.CreateExistingLabel(oControlRow, False)
Case "CMB"
LOGGER.Debug("Versuch CMB zu laden")
If oControlRow.Item("READ_ONLY") Then
Dim cmbReadonly = ClassControlCreator.CreateExistingTextbox(oControlRow, False)
oMyControl = cmbReadonly
Else
Dim cmb = ClassControlCreator.CreateExistingCombobox(oControlRow, False)
AddHandler cmb.SelectedValueChanged, AddressOf OnCmbselectedIndex
@ -762,6 +765,9 @@ Public Class frmValidator
cmb.DropDownWidth = maxWith
oMyControl = cmb
End If
Case "DTP"
LOGGER.Debug("Versuch DTP zu laden")