slowNsteady
Programmer
Hi Friends,
Please Help me in converting this C# code to VB.net code
Thanks
Sri
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
}
Sri