sql editor and fix read only

This commit is contained in:
JenneJ
2015-10-26 12:15:45 +01:00
parent e47a7eac67
commit 7149b1cb4f
4 changed files with 84 additions and 65 deletions

View File

@@ -587,10 +587,11 @@ Public Class ClassControlBuilder
control.Cursor = Cursors.Hand
End If
If Not read_only Then
If Not read_only Or _designMode Then
Me.SetEventHandlers(control)
End If
Me.CurrentControl = DirectCast(control, TextBox)
If Not IsNothing(parent) Then
control.Parent = parent
@@ -932,7 +933,7 @@ Public Class ClassControlBuilder
control.Size = New Size(vwidth, vheight)
End If
If Not read_only Then
If Not read_only Or _designMode Then
Me.SetEventHandlers(control)
End If
@@ -973,6 +974,8 @@ Public Class ClassControlBuilder
control.Parent = _master_panel
control.ReadOnly = read_only
column.HeaderText = ""
column.Name = "column1"
control.Columns.Add(column)