In the LinkClicked event handler, invoke the Show method to open another form in the project, and set the LinkVisited property to true.Īn instance of the LinkLabelLinkClickedEventArgs class carries a reference to the LinkLabel control that was clicked, so there is no need to cast the sender object. You may need to modify this based on the text entered in Step 1. at the first character and extend for eight characters. In this code example, the link area has been set to begin ' You may need to modify this based on the text entered in Step 1. ' at the first character and extend for eight characters. The LinkArea property can be set in the Properties window or in code in a manner similar to the following: ' In this code example, the link area has been set to begin The LinkArea value is represented by a LinkArea object containing two numbers, the starting character position and the number of characters. How it is indicated depends on the appearance-related properties of the link label. Set the LinkArea property to determine which part of the caption will be indicated as a link. Set the Text property to an appropriate caption. Linking to Another Form To link to another form with a LinkLabel control For more information on changing the color, see How to: Change the Appearance of the Windows Forms LinkLabel Control. When the link is clicked, you can change its color to indicate the link has been visited. The Windows Forms LinkLabel control allows you to create Web-style links on your form.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |