我有一个LinkLabel
,通过设置BorderStyle=none
当我运行窗体时,它周围有一个薄边框。 我想从链接标签中移除这个薄边框。我怎样才能做到这一点?从Linklabel C删除边框#
的代码我LinkLabel的是
linkLabel1.AccessibleRole = System.Windows.Forms.AccessibleRole.Alert;
linkLabel1.BackColor = System.Drawing.Color.Transparent;
linkLabel1.Font = new System.Drawing.Font("Tw Cen MT Condensed", 13F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
linkLabel1.ForeColor = System.Drawing.SystemColors.HotTrack;
linkLabel1.LinkBehavior = System.Windows.Forms.LinkBehavior.NeverUnderline;
linkLabel1.LinkColor = System.Drawing.Color.RoyalBlue;
linkLabel1.Location = new System.Drawing.Point(129, 330);
linkLabel1.Name = "linkLabel1";
linkLabel1.Size = new System.Drawing.Size(68, 21);
linkLabel1.TabIndex = 7;
linkLabel1.TabStop = true;
linkLabel1.Text = "Contact Us";
linkLabel1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
LinkLabel的代码输出截图 http://tinypic.com/r/20rk09v/6 LinkLabel的代码设计视图Scrrenshot http://tinypic.com/r/4kzj9y/6
请给我展示的LinkLabel – HatSoft 2012-07-19 14:03:42
大概看看属性的代码; bordercolor,borderwidth(或边界)这样的事情。 – 2012-07-19 14:05:03