比如运行中的一个程序a.exe
显示窗口FormA如何写一个程序来设置FormA的透明效果前提
在不修改a.exe的情况下
写一个b.exe来做这个效果
显示窗口FormA如何写一个程序来设置FormA的透明效果前提
在不修改a.exe的情况下
写一个b.exe来做这个效果
解决方案 »
- 10000000 转换成十进制 128 再转char 后,signed char 范围-128~~128 有越界嫌隙
- 急!求助用C#如何检查guest账户是否启用状态。在线等
- WinFrom 如果以非独占的方式打开图片?
- 无法找到页面
- 现在做一个项目,用到水晶报表,C#.net谁有资料可以给点吗。
- 输入问题?
- 有关owc11问题
- 求 与编程有关的励志书籍(最好C#),给个书名就有分
- .net支付成功后返回验证失败responseTxt=FILLEGAL_SWITCH_SYSTEM
- 请推荐个中文的C#论坛
- 关于C#读取Delphi写的二进制文件
- wince下的c#源码能不能在winxp中直接重新编译使用?
显示了一个不透明的FormAb.exe是我需要写的程序
功能就是让FormA变成透明最好能支持透明度百分比
那你让b.exe保存一个FormA的引用。
然后在b.exe中更改FormA 的opacity属性。
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2();
frm.Show();
this.Opacity = frm.caps;
}
}
}
/////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
public double caps = 0.5;
public Form2()
{
InitializeComponent();
}
}
}
这是Winform 之间的变化 你看有用么?
不是一个exe中
在B.exe中通过窗口句柄,获取到Button的句柄,然后通过SendMessage发送点击事件,实现窗口透明。
推荐18的方法。
只有APIFindWindow
GetWindowLong
SetWindowLong
SetLayeredWindowAttributes2个独立的exe
原本不支持透明
我强行改而已