c# - Use flowlayoutpanel to hold forms -


i'm trying use flowlayoutpanel hold several forms (public partial class subform : form). tried:

subform sf = new subform (); sf.toplevel = false; sf.parent = this; // form containing flowlayoutpanel1 sf.show(); flowlayoutpanel1.controls.add(sf); //flowlayoutpanel1 created design 

there 2 problems this:

  1. i cannot "select" subform. specific, enter, leave, etc events never triggered when click on subform in flowlayoutpanel1
  2. i cannot resize subform

what need create "main" window containing several subforms("sub" windows) in flowlayoutpanel, should able select, resize, close "sub" windows. i'm using .net 4.0

edit:

i need enable user create/delete/move/resize "sub" windows inside "main" window, , "sub" windows should automatically aligned. that's all. if did wrong, please point out specific control(s) should use.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -