我有一個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