P
Pranav Vaidya
Hi,
I am trying to place a checkbox on a flexgrid using the following code.
Everything works fine, but I cannot see the checkbox. Can you please let me
know what am I missing here?
I have 11 columns in the grid and I want the checkbox to be on 1st row after
heading row and on the last column.
Dim NewCheckBox As MSForms.CheckBox
mshflgrReport.Row = 1
mshflgrReport.Col = 10
Set NewCheckBox = Me.Controls.Add("Forms.checkbox.1")
With NewCheckBox
.Name = "MyCheck"
.Caption = ""
.Top = mshflgrReport.Top + mshflgrReport.CellTop
.Left = mshflgrReport.Left + mshflgrReport.CellLeft
.Width = mshflgrReport.CellWidth
.Height = mshflgrReport.CellHeight
.Font.Size = 7
.Font.Name = "Tahoma"
.BackColor = &HFF00&
.Visible = True
.Value = True
End With
Thanks in advance,
I am trying to place a checkbox on a flexgrid using the following code.
Everything works fine, but I cannot see the checkbox. Can you please let me
know what am I missing here?
I have 11 columns in the grid and I want the checkbox to be on 1st row after
heading row and on the last column.
Dim NewCheckBox As MSForms.CheckBox
mshflgrReport.Row = 1
mshflgrReport.Col = 10
Set NewCheckBox = Me.Controls.Add("Forms.checkbox.1")
With NewCheckBox
.Name = "MyCheck"
.Caption = ""
.Top = mshflgrReport.Top + mshflgrReport.CellTop
.Left = mshflgrReport.Left + mshflgrReport.CellLeft
.Width = mshflgrReport.CellWidth
.Height = mshflgrReport.CellHeight
.Font.Size = 7
.Font.Name = "Tahoma"
.BackColor = &HFF00&
.Visible = True
.Value = True
End With
Thanks in advance,