I had this task:
create a simple windows project with two forms.
In form1 put a datagridview with some columns. Set the propriety of one column (detailCol)to false.
Also add a button that if clicked would show the second form.
In form2 put a checkbox that if checked would cause the column of the datagridview of the first form to show.
I coded the checkbox like this:
If checkbox.checked = true then (here checkbox is jagged: not recognized)
DetailCol.visible = true
else
detailCol.visible = false (Also here checkbox is jagged: not recognized)
end if
The right code is:
If checkbox.checked = true then
form1.DetailCol.visible = true
else
form1.detailCol.visible = false
End if
create a simple windows project with two forms.
In form1 put a datagridview with some columns. Set the propriety of one column (detailCol)to false.
Also add a button that if clicked would show the second form.
In form2 put a checkbox that if checked would cause the column of the datagridview of the first form to show.
I coded the checkbox like this:
If checkbox.checked = true then (here checkbox is jagged: not recognized)
DetailCol.visible = true
else
detailCol.visible = false (Also here checkbox is jagged: not recognized)
end if
The right code is:
If checkbox.checked = true then
form1.DetailCol.visible = true
else
form1.detailCol.visible = false
End if