Accessing webbrowser control values in the javascript child window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manishkatoch78
    New Member
    • Aug 2007
    • 1

    #1

    Accessing webbrowser control values in the javascript child window

    I have an windows application contains the webrowser control.
    we are browsing the web application through the windows application.
    When we are opening a child form using "window.showmod alessdialog" and trying to get the values from the webbrowser control of the windows application it crashes the windows application and throws the exception "System.NullRef erence" in the following line of code:

    CurrentURL = frmMain.WebBrow ser1.Document.D omDocument.All. SnapInWindow.sr c.ToString()

    Because when child form creates a object of the windows application at that time browser control doesn't contains anything

    Please suggest.
    Its very urgent

    thanks & Regards

    Manish Katoch
    manishkatoch78@ gmail.com
Working...