如何使用C#制作透明表单(或图片框,面板) [英] How to make a transparent form(or picturebox, panel) with C#

查看:152
本文介绍了如何使用C#制作透明表单(或图片框,面板)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys :)



我现在用C#制作射击飞行游戏。

我们使用表单将Google地球设置为游戏背景。

表单被调用,Google地球以此形式执行。



但是这部分我们有问题。

我想覆盖谷歌地球上的一些图像,但不允许直接用它。

因为我们浏览网页,可以在第一张表格上制作另一张表格并让它变得透明。我想我们可能会在这个透明的表单上添加一些图像,所以我们尝试了但是没有执行...



所以如果你有任何关于这个的示例代码或者以前成功的任何经验,请给我一些解释...

解决方案

查看此链接

如何到改变窗口透明度式 - 窗口7 / [ ^ ]

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity(v = vs.110).aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/czke9azk(V = vs.110)的.aspx [ ^ ]

Hello guys :)

I'm making a shooting flying game with C# nowadays.
We set Google earth as a background of the game by using form.
The form is called and Google earth is executed in this form.

but we have a problem in this part.
I wanna cover some image on Google earth, but it isn't allowed directly to that.
as we have surfed web, it is possible to make another form on a first form and let it make transparent. I thought we might attach some image on this transparent form, so we tried it but it isn't executed...

So if you have any example code about this or any experience that was succeeded before, please give me some explanation...

解决方案

See this links
how-to-change-window-transparency-in-windows-7/[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity(v=vs.110).aspx[^]
http://msdn.microsoft.com/en-us/library/czke9azk(v=vs.110).aspx[^]


这篇关于如何使用C#制作透明表单(或图片框,面板)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆