B beacon Member Licensed User Longtime User Feb 26, 2011 #1 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.
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.
agraham Expert Licensed User Longtime User Feb 26, 2011 #2 I guess you haven't tried it but your code does actually work. The Top and Left properties for a Form are undocumented but as a Form is a Control it does have those properties.
I guess you haven't tried it but your code does actually work. The Top and Left properties for a Form are undocumented but as a Form is a Control it does have those properties.
M mjcoon Well-Known Member Licensed User Feb 26, 2011 #3 agraham said: The Top and Left properties for a Form are undocumented but as a Form is a Control it does have those properties. Click to expand... 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.
agraham said: The Top and Left properties for a Form are undocumented but as a Form is a Control it does have those properties. Click to expand... 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.