Internet ExplorerClass Visible property not working when InternetExplorerClass is instantiated in a web service RRS feed

  • Question

  • Hello,
    I'm trying to open a new Internet Explorer window each time a web method of a certain web service is called.
    The window seems to be created as I can see the process iexplore.exe in the task manager, but is always invisible even if I set Visible property of InternetExplorerClass instance to true.
    Below is the code I am using:

        public string OpenIE() { 
            ThreadStart ts = delegate 
                                     InternetExplorer ie = new InternetExplorerClass(); 
                                     ie.Visible = true
            Thread t = new Thread(ts); 
            return string.Empty; 

    The above code executes successfully and produces no exceptions.
    Does anyone know what the problem could be?

    Kostas Papakonstantinou
    Wednesday, December 17, 2008 11:07 AM


All replies