日期:2014-05-18  浏览次数:20870 次

如何给panel边框加粗
如何给panel边框加粗

------解决方案--------------------
在Paint事件里重绘一下。
------解决方案--------------------
C# code

 private void panel_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics, panel36.ClientRectangle,
                                        [color=#00FF00] Color.Gray, 1, ButtonBorderStyle.Solid,
                                         Color.Gray, 0, ButtonBorderStyle.Solid,
                                         Color.Gray, 1, ButtonBorderStyle.Solid,
                                         Color.Gray, 0, ButtonBorderStyle.Solid);[/color]
        }