Navigating the Web with the WebBrowser Control
QR Code ISO/IEC18004 Encoder In Visual Studio .NET
Using Barcode generation for ASP.NET Control to generate, create QR Code 2d barcode image in ASP.NET applications.www.OnBarcode.com
Bar Code Printer In Visual Studio .NET
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.www.OnBarcode.com
The WebBrowser control provides methods that enable navigation of the Web in your application. The primary method for navigation is the Navigate method. This method takes a string argument that indicates the URL for the document to be loaded into the WebBrowser control. The following example demonstrates the Navigate method.
QR Code ISO/IEC18004 Generator In C#
Using Barcode creator for .NET Control to generate, create QR-Code image in .NET applications.www.OnBarcode.com
QR Code JIS X 0510 Drawer In Visual Studio .NET
Using Barcode generation for Visual Studio .NET Control to generate, create Quick Response Code image in .NET applications.www.OnBarcode.com
' VB WebBrowser1.Navigate("www.microsoft.com") // C# webBrowser1.Navigate("www.microsoft.com");
Encode Denso QR Bar Code In VB.NET
Using Barcode generator for Visual Studio .NET Control to generate, create QR Code image in .NET framework applications.www.OnBarcode.com
EAN13 Encoder In .NET
Using Barcode maker for ASP.NET Control to generate, create European Article Number 13 image in ASP.NET applications.www.OnBarcode.com
Once navigation is complete, the WebBrowser control raises the DocumentCompleted event. By handling this event, you can execute code after the document has loaded. You can use other methods of the WebBrowser control to access your document his tory. The GoBack method navigates to the previous page in the document history, and the GoForward method navigates to the next page in the document history. If no page is available in the document history, there is no effect.
Generate Code 128 Code Set B In VS .NET
Using Barcode generator for ASP.NET Control to generate, create Code128 image in ASP.NET applications.www.OnBarcode.com
Encoding UCC-128 In .NET
Using Barcode drawer for ASP.NET Control to generate, create UCC.EAN - 128 image in ASP.NET applications.www.OnBarcode.com
UPC-A Supplement 5 Generator In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create Universal Product Code version A image in ASP.NET applications.www.OnBarcode.com
Generating Barcode In .NET
Using Barcode generator for ASP.NET Control to generate, create bar code image in ASP.NET applications.www.OnBarcode.com
Advanced Windows Forms Controls
Print Matrix 2D Barcode In .NET
Using Barcode maker for ASP.NET Control to generate, create Matrix Barcode image in ASP.NET applications.www.OnBarcode.com
MSI Plessey Encoder In .NET
Using Barcode generator for ASP.NET Control to generate, create MSI Plessey image in ASP.NET applications.www.OnBarcode.com
Working with Documents in the WebBrowser Control
Making Code 128 Code Set A In None
Using Barcode maker for Word Control to generate, create Code 128B image in Microsoft Word applications.www.OnBarcode.com
Denso QR Bar Code Generation In Java
Using Barcode generation for Java Control to generate, create QR Code ISO/IEC18004 image in Java applications.www.OnBarcode.com
You can also use the Navigate method to load other documents into the WebBrowser control. The following example demonstrates how to load a Microsoft Office Word document into the WebBrowser control.
Recognizing QR Code ISO/IEC18004 In C#
Using Barcode reader for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications.www.OnBarcode.com
Paint GTIN - 128 In VS .NET
Using Barcode encoder for Visual Studio .NET Control to generate, create EAN / UCC - 13 image in .NET framework applications.www.OnBarcode.com
' VB WebBrowser1.Navigate("C:\Test.doc") // C# webBrowser1.Navigate(@"C:\Test.doc");
Making DataMatrix In Visual Basic .NET
Using Barcode printer for .NET framework Control to generate, create Data Matrix 2d barcode image in VS .NET applications.www.OnBarcode.com
Code128 Creator In None
Using Barcode printer for Online Control to generate, create Code 128 Code Set C image in Online applications.www.OnBarcode.com
When working with documents in the WebBrowser control, you can allow the user to save the document by using the ShowSaveAsDialog method. This method displays the Save As dialog box and allows the user to choose a format to save the document. You can also use the WebBrowser control for printing documents. You can call the ShowPrintDialog and ShowPrintPreview methods to enable printing of the document. These methods show the Print dialog box and the Print Preview dialog box, respec tively, and allow the user to continue on to printing the document.
Matrix 2D Barcode Creation In Java
Using Barcode encoder for Java Control to generate, create Matrix Barcode image in Java applications.www.OnBarcode.com
EAN13 Reader In C#
Using Barcode reader for .NET framework Control to read, scan read, scan image in .NET framework applications.www.OnBarcode.com
The NotifyIcon Component
The NotifyIcon component is not a control but, rather, a component that represents an icon that appears in the system tray. The NotifyIcon component is usually used with applications that run in the background. They can provide information about the pro gram execution by displaying balloon tips, and you can associate a ContextMenuStrip with the NotifyIcon to allow the user to execute commands from a context menu. Table 3-19 shows important properties of the NotifyIcon component.
Table 3-19 Important Properties of the NotifyIcon Component
Description The icon that will be shown in the balloon tip. This property can be set to None, which displays no icon, or to Info, Warning, or Error. Sets the text that is displayed in the balloon tip. Sets the title of the balloon tip. Gets or sets the ContextMenuStrip associated with the NotifyIcon.
BalloonTipText BalloonTipTitle ContextMenuStrip
Lesson 3: Configuring the WebBrowser Control and the NotifyIcon Component and Creating Access Keys
Table 3-19 Important Properties of the NotifyIcon Component
Property Icon Text Visible
Description The icon that is shown in the system tray. The text that is shown when the user s mouse rests on the icon in the system tray. Indicates whether the icon is visible in the system tray.
To display a NotifyIcon in the system tray, you must set the Icon property to the icon you want to display and set the Visible property to True. You can add icons to your project by creating a new instance of the System.Drawing.Icon class, or by adding exist ing icon files to your project from the Project>Add Existing Item menu option. The NotifyIcon component contains properties that govern the display of the balloon tip. The balloon tip can be used to display information to the user. You can set the Icon, Text, and Title of the balloon tip by setting the BalloonTipIcon, BalloonTipText, and BalloonTipTitle properties, respectively. After the appropriate properties are set, you can display the balloon tip by calling the ShowBalloonTip method. The ShowBalloonTip method takes a parameter that indicates the number of seconds that the balloon tip is shown. Following is an example of the ShowBalloonTip method:
' VB NotifyIcon1.ShowBalloonTip(12) // C# notifyIcon1.ShowBalloonTip(12);
You can associate a ContextMenuStrip with the NotifyIcon component to allow users to execute commands from the menu by right-clicking the icon. You can associate a Con textMenuStrip with the NotifyIcon component by clicking the ContextMenuStrip prop erty in the Properties window and setting the property to a ContextMenuStrip in your solution. Creating ContextMenuStrips will be discussed in detail in 4, ToolStrips, Menus, and Events.