消息框: using System.Runtime.InteropServices; namespace Windows_API_实现屏幕右下角_消息框_ { public partial class Msg : Form { public Msg() { InitializeComponent(); Point p = , Screen.PrimaryScreen.WorkingArea.Height - ); this.PointToScreen(p); this.Location = p;
下面是实例的cs代码 public partial class frm_Main : Form { //使用Windows Api AnimateWindow [DllImport("user32.dll", EntryPoint = "AnimateWindow")] private static extern bool AnimateWindow(IntPtr handle, int ms, int flags); public const Int32 AW_H