Bài đăng

Hiển thị các bài đăng có nhãn ink label

LinkLabel trong C#

Hình ảnh
A LinkLabel control is a label control that can display a hyperlink. A LinkLabel control is inherited from the Label class so it has all the functionality provided by the Windows Forms Label control. LinkLabel control does not participate in user input or capture mouse or keyboard events.  In this article, I will discuss how to create a LinkLabel control in Windows Forms at design-time as well as run-time. After that, I will continue discussing various properties and methods available for the LinkLabel control.  In Visual Studio 2010, the ToolStripLabel control is recommended for a LinkLabel control. Creating a LinkLabel There are two ways to create a control. Design-time First, we can use the Form designer of Visual Studio to create a control at design-time. In design-time mode, we can use visual user interfaces to create a control properties and write methods. To create a LinkLabel control at design-time, you simply drag and drop a LinkLabel control from Toolbox to a Form. A...