c# - Is there any premade function to help resize controls based on their parent control? -
i have been looking using generic resizing , repositioning feature game, creating, based on window size. problem haven't found proper function regulate controls size , position based on it's parents original size, new size , set of directions (such allow resize y , or x, disallow resize w , or y, allow reposition x , or y, disallow reposition x , or y). considering making own generic function , when tested @ first came problematic results controls resized not properly. don't expect create code curious if there function out there rather reinventing wheel.
using control.dock property
yourcontrol.dock = dockstyle.fill
so it'll resize according it's parent.
Comments
Post a Comment