Opacity问题 有些Opacity不为1的窗体,截屏时怎么才能截到它? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不能调整 Opacity吗?如果是别的窗体 看看下面能不能帮你 [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hwnd, int nIndex, int dwNewLong); [DllImport("user32.dll")] private static extern int SetLayeredWindowAttributes(IntPtr hwnd, int crKey, byte bAlpha, int dwFlags); private void SetFromOpacity(IntPtr p_Handle, byte p_Numb) { SetWindowLong(this.Handle, (-20), 0x80000); SetLayeredWindowAttributes(this.Handle, 0, 50, 0x2); } 错了 [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hwnd, int nIndex, int dwNewLong); [DllImport("user32.dll")] private static extern int SetLayeredWindowAttributes(IntPtr hwnd, int crKey, byte bAlpha, int dwFlags); private void SetFromOpacity(IntPtr p_Handle, byte p_Numb) { SetWindowLong(p_Handle, (-20), 0x80000); SetLayeredWindowAttributes(p_Handle, 0, p_Numb, 0x2); } 截图时调整为不透明,截园了再调回去或者用Control.DrawToBitmap看可不可以 使用GDI+,目前我还没找到更好的方法,按楼上zgke和cpio的建议,采用调整Opacity来达到目的。 C#中实时获取数据的问题 这是怎么回事? winform中修改密码如何可以在程序下次运行时候执行修改后的密码?? 求一个Sql查询表达式? C#如何随机获取一个可用端口 flash9.0控件 winform 单击事件动态添加 搞了好久没搞定,求救!(运行项目时出错:无法在Web服务器上启动调试。) 请问如何生成一个可运行文件? webpart初学者,请高手指点! 在使用ADO.NET中的DataSet时当连接的数据源是服务器时总是发生异常,好奇怪呀! 各位大哥谁有 crystal reports 10 客户端下载 c# 的 Delegates 概念
private static extern int SetWindowLong(IntPtr hwnd, int nIndex, int dwNewLong);
[DllImport("user32.dll")]
private static extern int SetLayeredWindowAttributes(IntPtr hwnd, int crKey, byte bAlpha, int dwFlags); private void SetFromOpacity(IntPtr p_Handle, byte p_Numb)
{
SetWindowLong(this.Handle, (-20), 0x80000);
SetLayeredWindowAttributes(this.Handle, 0, 50, 0x2); }
[DllImport("user32.dll")]
private static extern int SetWindowLong(IntPtr hwnd, int nIndex, int dwNewLong);
[DllImport("user32.dll")]
private static extern int SetLayeredWindowAttributes(IntPtr hwnd, int crKey, byte bAlpha, int dwFlags); private void SetFromOpacity(IntPtr p_Handle, byte p_Numb)
{
SetWindowLong(p_Handle, (-20), 0x80000);
SetLayeredWindowAttributes(p_Handle, 0, p_Numb, 0x2); }
截图时调整为不透明,截园了再调回去或者用Control.DrawToBitmap看可不可以