Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看到这个问题问了很多,但似乎找不到答案。所以就在这里。您可以使用带有 alpha 通道的 PNG 作为 VB 应用程序的背景图像吗?我不在乎改变应用矩形的形状就可以了。他们只想使用一个身后有阴影的角色作为应用程序的背景。
在 WinForms 中,您需要创建一个分层窗口。 在 WPF 中,您需要设置为AllowsTransparencytrue 和.WindowStyleNone
AllowsTransparency
WindowStyle
None