Can Form1 be positioned on the desktop?

beacon

Member
Licensed User
Longtime User
If the program is running on the Desktop, is there a way to position the window at runtime please?

eg.
If cPPC = False Then 'Running on the desktop
Form1.left=400
Form1.top=30
End If

Thanks.

:)
 

mjcoon

Well-Known Member
Licensed User
The Top and Left properties for a Form are undocumented but as a Form is a Control it does have those properties.

So I suppose that those properties could be read at program close and stored in a configuration file, so that the next invocation appears where the previous one was, just like a lot of Windows programs.

Mike.
 
Top