一個窗體特效
using System;
using System
using System
using System
namespace WindowsApplication
{
public partial class Form
{
public Form
{
InitializeComponent();
}
[DllImport(
public static extern long GetWindowLong(IntPtr hwnd
[DllImport(
public static extern long SetWindowLong(IntPtr hwnd
[DllImport(
private static extern int SetLayeredWindowAttributes(IntPtr Handle
const int GWL_EXSTYLE =
const int WS_EX_TRANSPARENT =
const int WS_EX_LAYERED =
const int LWA_ALPHA =
private void Form
{
this
this
this
this
SetWindowLong(Handle
SetLayeredWindowAttributes(Handle
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11485.html