Form and Controls to be centred on screen

reddevil1

Registered User.
Local time
Today, 16:01
Joined
Nov 12, 2012
Messages
92
Hi,

I have just found out about Anchoring. Now I have managed to stretch my Logo and Page Titles across the screen (whatever the screen size).

But I have two columns of controls (text boxes and combo boxes) in the Detail Section which I want them to keep the same width and height and do not want them to stretch out.

Is there a way to centre these controls in the middle of the screen?

I have set the Form properties as follows:-
Width - 15.0289cm
AutoCenter - Yes
AutoResize - Yes
Fit To Screen - Yes
The Background colour of the Details Section does go all the way across the screen??
 
Last edited:
I think centering is the thing Microsoft forgot about as the Anchoring options are limited:

Left Right Both
Top Bottom Both.

This is a long shot:

To mitigate the inability to centre try putting your controls dead centre of the existing screen and then dummy control(s) to the left and make the Horizontal Anchoring of the dummy controls to both and the real Controls Right. The dummy controls should push the real Controls to the Right as the Form expands. Any preceding the controls Horizontal Anchoring should be left.

Simon
 

Users who are viewing this thread

Back
Top Bottom