c# - Webbrowser when navigate Download dialog opened -


program.cs code

static void main()     {         checkhwid();         application.enablevisualstyles();         application.setcompatibletextrenderingdefault(false);         var lgn = new form2();         lgn.formclosed += new formclosedeventhandler(formclosed);         lgn.show();         application.run();     }     static void formclosed(object sender, formclosedeventargs e)     {         ((form)sender).formclosed -= formclosed;         if (application.openforms.count == 0) application.exitthread();         else application.openforms[0].formclosed += formclosed;     } 

program.cs , form 2 -> form1(webbrowser)

      form1 fr = new form1();         fr.show();         this.close(); 

form1.code

browser.navigate("http://google.com"); 

when navigate browser open download websource dialog don't know why happened


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -