vb.net - Three panels, one in the center, other two resize -
So, I'm working on a VB.NET WordPad program. I have three panels in the middle of my panel and there is a rich textbox in the middle panel. Here is an image:
Example: || || middle is the actual page [A4] [My size is exact] When I change the size of the WordPad program / max, the side panels all have the same size, although the size of the middle panel varies, but The text box should remain on the left side of the panel. As the text box is covering all, the panel should not be visible, but when its size changes, the text box resides in the same size and the middle panel is visible as it resizes itself on the right The panel panel is like # 1 and remains where it means the same size.
Though I'm thinking how I can make a mid panel [while changing shape] and instead of resizing the middle panel, changing the size of both sides panels instead of it || || Its now # 1 | # 2 | # 3 |
Sorry for the terrible examples, but hopefully someone will understand thank you
Sorry, what you were initially asking for was misunderstood and the anchor is actually trying to do what will not work for you.
This is the best I can come up with and can use the form resize event. It is believed that the width of panel 1 and 3 is the same, width is being extracted from the breadth width to the width of the panel 2.
Make my personal sub form 1_size (objects, inventions) handles. Set Panel 1 Width Panel 1 Width = (Clients With Width - Panel 2 Width) / 2 'Panel 2 Next Position Panel 2 Panel 2. Left = Panel 1. Left panel panel 1 video panel panel 3 panel panel Left = Panel 2. Left + Panel 2 width 'set panel 3 width panel 3.Width = (Clientys wide - panel 2 width) / 2 end sub
You can do if you want to panels 1 and Panel 3 Want different shapes or want to differentiate between the panel and / or limitations, then play it easily, but it will give you a good starting point.
Comments
Post a Comment