如何使PictureBox控件透明,以便能看到下一层的曲线?

OnlyVB 2013-10-01 11:41:32
PictureBox1里面有n个PictureBox控件重叠,如何使PictureBox控件透明,以便能看到下一层的东西。
...全文
352 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
OnlyVB 2013-10-11
  • 打赏
  • 举报
回复
PictureBox控件真的不能透明吗
宝_爸 2013-10-04
  • 打赏
  • 举报
回复
解决起来还真是很麻烦。lz看看下面的讨论: Transparent controls in WinForms are transparent relative to their parent, not to other controls. Transparency in WinForms is more akin to camouflage than true transparency. A transparent control doesn’t actually let you see the control behind it through the form. It asks its parent to draw its own background on the "transparent" control. This is why a transparent control shows the form behind it, but covers up any other controls. 来自下面的讨论 http://stackoverflow.com/questions/12138892/picturebox-with-transparent-background 这里有些解决方法: http://stackoverflow.com/questions/4144371/a-picturebox-problem
OnlyVB 2013-10-04
  • 打赏
  • 举报
回复
不是图片。比如,一个picturebox父控件中有两个大小位置相同picturebox子控件,分别用Graphics画了一条曲线,如何使两条曲线都能看到? 请不要说把两条曲线画在一个picturebox控件之类的话!
OnlyVB 2013-10-03
  • 打赏
  • 举报
回复
没人知道吗?
OnlyVB 2013-10-03
  • 打赏
  • 举报
回复
PictureBox控件真的不能透明吗
  • 打赏
  • 举报
回复
十几年前做到什么,现在还是那些功能。 --> 十几年前做到什么,现在还是那些功能,winform控件并不支持重构。
  • 打赏
  • 举报
回复
你能“打破”PictureBox吗? PictureBox并没有百十种模板、样式、各种绑定机制给你定制。整个winform里边的控件基本上都根本在设计时不考虑将来需要向控件内进行重构开发的。 十几年前做到什么,现在还是那些功能。实际上从2003年就应该考虑使用WPF了。
  • 打赏
  • 举报
回复
winform控件基本上都没有什么开发潜力,别跟winform较劲。这类功能基本上无法扩展。 尽早使用silverlight/wpf,那么这种问题就是“识字”问题一样简单。
huangshanse 2013-10-03
  • 打赏
  • 举报
回复
试试设置父控件 试试动态创建控件

16,547

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧