web - C# webBrowser1 does not exist in the current context -
using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; using system.web; using system.web.security; namespace windowsformsapplication1 { public partial class form1 : form { public form1() { initializecomponent(); } private void button1_click(object sender, eventargs e) { webbrowser1.navigate("www.google.com"); } } }
after inserting above code message: name webbrowser1 not exist in current conext. how webbrowser1 work?
go designer view of form , create sure there web browser command in form named webbroswer1.
c# web
No comments:
Post a Comment