Accessing controls within document windows

2 posts, 1 answers
  1. Alan
    Alan avatar
    14 posts
    Member since:
    Jan 2007

    Posted 03 Apr 2011 Link to this post

    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


  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 03 Apr 2011 Link to this post

    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
Back to Top