literal.Text = (gridView.Controls[i] as CheckBox).Checked ? "True" : "False";
How to convert this line to VB.Net syntax, could someone please help me?
literal.Text = (gridView.Controls[i] as CheckBox).Checked ? "True" : "False";
How to convert this line to VB.Net syntax, could someone please help me?
literal.Text = If(TryCast(gridView.Controls(i), CheckBox).Checked, "True", "False")
You can always use this nice online converter
Cheat. Use a code converter. There are free ones online. Learn from what you get for results.
produces
literal.Text = If(TryCast(gridView.Controls(i), CheckBox).Checked, "True", "False")
there are online converters you can use to get pretty close for this stuff
http://www.developerfusion.com/tools/convert/csharp-to-vb/1
literal.Text = If(TryCast(gridView.Controls(i), CheckBox).Checked, "True", "False")
literal.Text = If(TryCast(gridView.Controls(i), CheckBox).Checked, "True", "False")