I have a form with a series of buttons in two columns down the left side, with a listbox to the right of that. Below the buttons are some labels, and at the bottom of the form is a single button for Finished. Nothing all that spectacular.
At the top level, there are two rows in a grid. The bottom row has that single Finished button, the top row has everything else. The top row has a grid that has three columns, the first column holds one column of buttons, the second column holds the second column of buttons, and the third column holds the listbox.
The form looks fine when first displayed. Today, for the first time, I tried resizing the form, and it promptly goes pretty much haywire, but in a consistent fashion (I've tried it a few times). The best that I can say is that the bottom row, which holds the Finished button, now becomes an almost fixed size. Initially, when displayed properly, it is perhaps a bit more than 1/10th the height of the form. As soon as I even slightly adjust the size of the form, it jumps to about half the height of the form, thereby overrunning some of the buttons, and the labels. Interestingly, the listbox shrinks down to the occupy the remaining space, as far as height is concerned.
The vertical spacing between elements remains the same, as far as I can tell, it's just that the bottom row has jumped from 1/10th the form to about half the form. As I shrink the form, the bottom row with the Finished button shrinks in size until it begins to not fully show the button, though by then none of the other controls are particularly visible, either.
The other thing that happens is that the width gets weird. The form jumps to considerably wider than it had been, with the columns of buttons getting excessive space between them, and the listbox being pushed so far to the right that half of it is off the edge of the form, thereby making the vertical scroll bar unreachable.
This jump happens as soon as I click on the border of the form. I don't have to actually resize it by any noticeable amount, it just jumps right away to this new configuration.
I saw something about not using hard heights and widths, so I removed all of that from the form, but it had no impact on this issue.
Any suggestions as to what is happening? It's quite the mess, because it makes a usable form unusable.
At the top level, there are two rows in a grid. The bottom row has that single Finished button, the top row has everything else. The top row has a grid that has three columns, the first column holds one column of buttons, the second column holds the second column of buttons, and the third column holds the listbox.
The form looks fine when first displayed. Today, for the first time, I tried resizing the form, and it promptly goes pretty much haywire, but in a consistent fashion (I've tried it a few times). The best that I can say is that the bottom row, which holds the Finished button, now becomes an almost fixed size. Initially, when displayed properly, it is perhaps a bit more than 1/10th the height of the form. As soon as I even slightly adjust the size of the form, it jumps to about half the height of the form, thereby overrunning some of the buttons, and the labels. Interestingly, the listbox shrinks down to the occupy the remaining space, as far as height is concerned.
The vertical spacing between elements remains the same, as far as I can tell, it's just that the bottom row has jumped from 1/10th the form to about half the form. As I shrink the form, the bottom row with the Finished button shrinks in size until it begins to not fully show the button, though by then none of the other controls are particularly visible, either.
The other thing that happens is that the width gets weird. The form jumps to considerably wider than it had been, with the columns of buttons getting excessive space between them, and the listbox being pushed so far to the right that half of it is off the edge of the form, thereby making the vertical scroll bar unreachable.
This jump happens as soon as I click on the border of the form. I don't have to actually resize it by any noticeable amount, it just jumps right away to this new configuration.
I saw something about not using hard heights and widths, so I removed all of that from the form, but it had no impact on this issue.
Any suggestions as to what is happening? It's quite the mess, because it makes a usable form unusable.