Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Code from C# to VB.net

Status
Not open for further replies.

slowNsteady

Programmer
May 29, 2009
22
0
0
US
Hi Friends,

Please Help me in converting this C# code to VB.net code

Code:
private void CreateComponents(string[] questions) {
for (int i=0;i<questions.Length;i++){
CheckBox chkBox = new CheckBox();
chkBox.Name = "chk"+i;
chkBox.Text = questions[i];
chkBox.Click += new System.EventHandler(this.CheckBoxHandler);
}
}

private void CheckBoxHandler(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
//and here you have access at the checkbox
}
Thanks
Sri
 
Google "csharp to vb". There are many conversion utilities available online.
 
or Google C# to vb.net

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top