I have a c# windows form with a listbox in it, and i would like the form to be able to resize such that its height only increases in increments of listBox1.ItemHe ight. I think the way it would work is when you start resizing prevent it from resizing until the mouse has moved listBox1.ItemHe ight in the Y direction, then increase the Height by listBox1.ItemHe ight. At this point i believe the width can be resized freely.
Normally i would just put a panel of the same color behind it to hide the fact that the listbox doesnt fill the whole area, but in this program that just wont look good. I know ive seen some commercial programs that do this, but i cant remember any to give you any ideas.
I think i may need to use "WM_SIZING" , according to some posts i found about keeping aspect ratios.
Normally i would just put a panel of the same color behind it to hide the fact that the listbox doesnt fill the whole area, but in this program that just wont look good. I know ive seen some commercial programs that do this, but i cant remember any to give you any ideas.
I think i may need to use "WM_SIZING" , according to some posts i found about keeping aspect ratios.
Comment