hai all i am generating list box dynamically in a form.
now before creating a list box , i want to verify that whether a listbox already exist in the form.
thanx in advance
Nirmal
Code:
ListBox li = new ListBox(); myForm.Controls.Add(li); li.Name ="SearchName"; System.Drawing.Point Location = new Point(TextBoxTop-60,TextBoxLeft +30); System.Drawing.Size size = new Size(200, 72); li.BringToFront(); li.Location = Location; li.Size = size; li.Visible = true;
thanx in advance
Nirmal
Comment