2013年5月2日

winform中Label背景透明的解决方案

摘要: 当Label控件在PictureBox控件上面时,我们想设置PictureBox控件上的Label控件透明,尝试设置Label的各种属性都无济于事。现将本人的解决方案提供如下:1)新建一个PictureBox控件,名称是pbxImage2) 新建一些Label控件,放在PictureBox上3) 添加PictureBox的Paint事件4) 添加如下代码:private void pbxImage_Paint(object sender, PaintEventArgs e) { foreach (Control C in this.Controls) { ... 阅读全文

posted @ 2013-05-02 21:37 西夏普砖家 阅读(1267) 评论(0) 推荐(0) 编辑

导航