TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
david seinfeild
NA
20
5.7k
how can i locate a webbrowser control
May 20 2013 3:03 AM
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;
}
}
}
Reply
Answers (
14
)
STATIC KEYWORD
validation in c#