C# Winforms, no resize arrow using GrowAndShrink -
i have winform picture box, button, , menustrip. picture box anchored sides when resize form, picture box resizes well. set form have minimum size of 700x600.
but works when form set autosizemode = growonly. if change autosizemode = growandshrink, diagonal <=> resize arrow doesn't show up.
if set sizegripstyle = show on form, can arrow show , "resize" drag resize, flickers fast , goes default size.
how can make growandshrink instead of growonly?
make sure form properties have following:
autosize: false (sounds should true, set false). autosizemode: growonly (like above, sounds should growandshrink) minimumsize: not important. set 1, 1 now. stop resizing getting small. maximumsize: not important. set 1, 1. above (minimumsize). sizegripstyle: not important. set show.
lastly, ensure use anchoring or docking adjusting control widths when form resizes. setting controls width may prevent resizing form.
Comments
Post a Comment