This is a migrated thread and some comments may be shown as answers.

Accessing controls within document windows

1 Answer 25 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 03 Apr 2011, 09:42 AM
I have a dock control that has a form in a document window that contains a Webbrowser control.  How do I access the URL and OuterHTML contained in the webbrowser control?

radDock -> documentwindow1 -> frmWebBrowser -> ctrlwebbrowser -> .URL

Alan

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 03 Apr 2011, 03:08 PM
Hello Alan,

Just access the form on that document window, it should be documentWindow1.Controls[0] and after that just expose the control (create a readonly public property to access the control from the form itself.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
Dock
Asked by
Alan
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or