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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -