To change the display position, you can use GDI+ graphics in csharp. Here's how you can do it:
main.cs403 chars13 lines
In the code above, we first get the primary screen and create a graphics object from it. Then, we use the TranslateTransform
method of the graphics object to move it to the desired position. Finally, we draw something on the graphics object at the new position.
Note that this will only change the display position of the graphics object, not the actual screen display. If you want to change the position of an application window, you need to use the SetWindowPos
function from the Win32 API.
gistlibby LogSnag