1.Use Windows API(too much difficult and may be crashed sometimes if you don't know it clearly).
2.Select a property node from the "Application Control" palette. The node will default to VI Server Class "Application." Right click and select "Properties -> Display -> Primary Display." This property will give you the bounds of the primary display (left, top, right, bottom).
转载于:https://www.cnblogs.com/Qia_sky/archive/2005/03/15/119303.html