Jquery中文网 www.jquerycn.cn
Jquery中文网 >  操作系统  >  windows  >  正文 About LinkLabel

About LinkLabel

发布时间:2019-12-14   编辑:www.jquerycn.cn
jquery中文网为您提供About LinkLabel等资源,欢迎您收藏本站,我们将为您提供最新的About LinkLabel资源
[C#]
// Create a new LinkLabel control.
        private LinkLabel linkLabel1 = new LinkLabel();
        
        public void InitializeMyLinkLabel()
        {
    
    // Set the control to autosize based on the text content.
    linkLabel1.AutoSize = true;
    // Position and size the control on the form.
    linkLabel1.Location = new System.Drawing.Point(8,16);
    linkLabel1.Size = new System.Drawing.Size(135,13);
    // Set the text to display in the label.
    linkLabel1.Text = "Click here to get more info.";
    // Create a new link using the Add method of the LinkCollection class.
    linkLabel1.Links.Add(6,4,"www.microsoft.com");
    // Create an event handler for the LinkClicked event.
    linkLabel1.LinkClicked = new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
    // Add the control to the form.
    this.Controls.Add(linkLabel1);
        }
        private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)

您可能感兴趣的文章:
About LinkLabel
Date Input
PHP Security Consortium
Jquery+CSS 创建流动导航菜单 Fluid Navigation
ClockPick, a Time Picker
Base64 functions
第十步:解决IE浏览器的显示BUG
如何使用<nav>链接实现滚动到页面某一部分
网页导航上用CSS标志当前页效果的实现
PHP学习之了解echo,print,vardump语句之间的区别

[关闭]