Does anyone know how to stop a popup from happening when using a webbrowser control within a WPF application ?
            Asked
            
        
        
            Active
            
        
            Viewed 2,433 times
        
    2 Answers
3
            Unfortunately there is no good way to archive this right now. This is a good feedback. We will add it to the list of things to provide for the WebBrowser control in the future release.
Source:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4d4fa88e-b8c8-4190-8153-db923ed0e24e/
 
    
    
        John
        
- 29,788
- 18
- 89
- 130
 
    
    
        Kieren Johnstone
        
- 41,277
- 16
- 94
- 144
- 
                    What is there a hack i could use similar to [this](http://stackoverflow.com/questions/77659/blocking-dialogs-in-net-webbrowser-control) – Welsh King Jun 21 '11 at 12:11
- 
                    I don't know, have you tried that? What happened when you did? – Kieren Johnstone Jun 21 '11 at 12:49
1
            
            
        You could simply select the WindowsFormsHost control, go inside the Constructor and set the ScriptErrorsSuppressed property to true for Blocking Pop ups .
 
    
    
        ForceMagic
        
- 6,230
- 12
- 66
- 88
 
    
    
        Sumit kumawat
        
- 11
- 1
