Point FrmP=new Point(button1.Left,button1.Top); //ScreenP返回相对屏幕的坐标 Point ScreenP=this.PointToScreen(FrmP);
Point po=PointToScreen(new Point(button1.Left,button1.Top)); 可以的啊
// All methods must be contained in a class. // This class is added to the namespace containing the Form1 class. class MainApplication { public static void Main() { // Instantiate a new instance of Form1. Form1 f1 = new Form1(); // Display a messagebox. This shows the application // is running, yet there is nothing shown to the user. // This is the point at which you customize your form. System.Windows.Forms.MessageBox.Show("The application " + "is running now, but no forms have been shown."); // Customize the form. f1.Text = "Running Form"; // Show the instance of the form modally. f1.ShowDialog(); } }http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/vbcon/html/vbtsksettingformtobeinvisibleatitsinception.asp 使用twips获得屏幕信息http://www.zdnet.com.cn/developer/code/story/0,2000081534,39191403,00.htm
//ScreenP返回相对屏幕的坐标
Point ScreenP=this.PointToScreen(FrmP);
可以的啊
// This class is added to the namespace containing the Form1 class.
class MainApplication
{
public static void Main()
{
// Instantiate a new instance of Form1.
Form1 f1 = new Form1();
// Display a messagebox. This shows the application
// is running, yet there is nothing shown to the user.
// This is the point at which you customize your form.
System.Windows.Forms.MessageBox.Show("The application "
+ "is running now, but no forms have been shown.");
// Customize the form.
f1.Text = "Running Form";
// Show the instance of the form modally.
f1.ShowDialog();
}
}http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/vbcon/html/vbtsksettingformtobeinvisibleatitsinception.asp
使用twips获得屏幕信息http://www.zdnet.com.cn/developer/code/story/0,2000081534,39191403,00.htm