private void courtnamelist_SelectedIndexChanged(object sender, EventArgs e) { districtcourtlist.Visible = false; supremecourtlist.Visible = false; heighcourtlist.Visible = false; nationlgreentribunallict.Visible = false; labourcourtlist.Visible = false; int[] arr = new int[10]; int selectinsexval = courtnamelist.SelectedIndex; if (selectinsexval == arr[0]) { supremecourtlist.Visible = true; districtcourtlist.Visible = false; heighcourtlist.Visible = false; nationlgreentribunallict.Visible = false; labourcourtlist.Visible = false; } else if (selectinsexval == arr[1]) { heighcourtlist.Visible = true; supremecourtlist.Visible = true; districtcourtlist.Visible = false; nationlgreentribunallict.Visible = false; labourcourtlist.Visible = false; } else if (selectinsexval == arr[2]) { heighcourtlist.Visible = true; supremecourtlist.Visible = true; districtcourtlist.Visible = false; nationlgreentribunallict.Visible = false; labourcourtlist.Visible = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)