Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27225

VS 2008 [RESOLVED] Two simple forms:help !

$
0
0
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

Viewing all articles
Browse latest Browse all 27225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>