简体   繁体   中英

Controls resizing issue

(using c# .net and devex controls.)

I have dockable panel with a devex grid within a form. this form is being derived by many other forms as base form.

Now if i try resizing the dockable panel with the grid in the derived form the size happens and the effect is seen when the application is run until we open the design file anymore.

Now when i again open the designer file in the application ic tht the size of the panel with grid is back to normal, basically am unable to handle the sizing in the derived form.

I want to do resizing in derived form as the size changes from form to form.

Can some one let me know wht would be the issue?

1) Have you considered using user controls and aggregation for your reuse instead of inheritance? I find that user controls work much better for what you are describing.

2) Use the anchors on the grid to anchor it to the left and right - it will resize in a smart way.

3) if you must resize the grid in descendant forms you can change the scope to be protected (Look for modifiers on the property grid.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM