![]() Var serviceProvider = (IServiceProvider)webBrowser1.Document This example requires a reference to SHDocVw.dll, a using statement, and a WebBrowser control named webBrowser1. The following example shows how to handle the NewWindow2 event and similar events using a WebBrowser control. Navigate to the desired URL by calling the. MessageBox.Show("The Address URI must be absolute. Only absolute URIs can be navigated to Uri uri = new Uri(, UriKind.RelativeOrAbsolute) Private void goNavigateButton_Click(object sender, RoutedEventArgs e) The following example shows how to configure WebBrowser to navigate to a document by using markup and code-behind. ![]() The following example shows how to configure WebBrowser to navigate to an HTML document by using markup only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |