c# - WebBrowser Control (.NET 2.0) text boxes don't accept keyboard input -
the webbrowser control have popping , displaying url correctly, reason can't type in text fields. can click on text fields , give them focus, , can paste text text fields, can't type in them keyboard. happens regardless of url type in.
i set allowwebbrowserdrop false, otherwise settings webbrowser control , form lives in standard.
very similar code using webbrowser works fine in .net 3.5, i'm relying on api that's still .net 2.0 only. plus, seems pretty rudimentary functionality have noticed not working.
here's constructor form webbrowser contained in:
public partial class loginwindow : form { main mainplugin; public loginwindow(string loginurl, main plugin) { this.mainplugin = plugin; try { //debug.writeline(loginurl); initializecomponent(); webbrowser1.allowwebbrowserdrop = false; webbrowser1.url = new uri(loginurl); } catch (exception ex) { //globals.thisaddin.ul.writeexceptioninfo(ex); messagebox.show("error creating browser. (lb_01) \n \n " + ex.gettype().tostring() + "\n\n" + ex.tostring(), "error"); } }
any ideas?
not sure problem is, perhaps add on-keypress event webbrowser control , redirect text focused text box.
Comments
Post a Comment