how can i locate a webbrowser control
im using this code here
to find a webbroswer newly created
but it wont find any of my broswer
not even my static one called
webbroswer1
on the other end it will find any other control
and dispose of it properly
how can i find a webbroswer by its name and remove it
heres my code
foreach (var c in this.Controls) { if (c is Control) { var x = (Control)c; if (x.Name == dispose) {
MessageBox.Show("this works");
x.Dispose(); break; }
else { bobby, this doesnt work ); break; }
} }