在设置中保存多个Groupbox大小 [英] Saving Multiple Groupbox Size in Settings

查看:87
本文介绍了在设置中保存多个Groupbox大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好互联网和你好世界!



我有5个groupbox,是否可以在一个设置中保存所有尺寸?或者我应该使用My.Settings.Groupbox1 = Groupbox1.size,My.Settings.Groupbox2 = Groupbox2.size等等?我希望我能在一个环境中保存这个。谢谢。任何帮助都将得到应用。

Hello internet and hello world!

I have 5 groupbox, is it possible to save all of there sizes in one setting? or should I use My.Settings.Groupbox1 = Groupbox1.size, My.Settings.Groupbox2 = Groupbox2.size and so on? I hope I can save this in just one setting. Thanks. Any help will be appreaciated.

推荐答案

保存Spitter的位置而不是groupBoxes。您还应该保存窗口/表单大小,位置,并根据您的位置保存实现,窗口状态。



如果你绝对必须,使用一些分隔符来做它(但如果你改变盒子的顺序或者添加新的或者其他的话会很容易破坏):size1,size2,size3



你'在将它应用到元素之前,必须先解析它。
Save the position of Spitter(s) not groupBoxes. You should also save window/form size, position and, depending on your implementation of position save, window state.

If you absolutely have to, use some separator to do it (but it will easily break if you change the order of the boxes or add new or whatever) like this: "size1,size2,size3"

You'll have to parse it out of course before applying it to the elements.


这篇关于在设置中保存多个Groupbox大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆