I have a custom event handler for a web browser control being loaded in a TabItem. How do I go about finding the webbrowser control within the TabItem?
1 Answer, 1 is accepted
0
Nikolay
Telerik team
answered on 02 Jul 2008, 01:54 PM
Hi Adam,
In order to find to WebBrowser control, you should traverse the TabItem.ContentPanel.Controls collection and check whether the current control is a WebBrowser control:
foreach (Control ctrl in tabItem1.ContentPanel.Controls)
{
if (ctrl is WebBrowser)
{
// Do something here
}
}
If you have additional questions, feel free to contact me.