分裂控制 [英] Spliting Control
问题描述
那里,
我有一个面板控件,其中包含超过10个标签
控件。这些标签控件是由用户动态添加的。
在这个应用程序中,用户可以将控件分成不少于10个不同的b $ b股票。
(不要担心这个。如果用户选择一个控件分成5或10. i
只需创建5或10个大小为5的控件/ 10或10/10的
控制分拆。)
我的问题是不同的。分裂后,如果我点击那个
不同的分裂,那么它将维持他们的状态。否则说如果我是
在控制它之后做了一些其他的工作它会从
那个小组消失。
告诉我发生在我的孩子身上(分裂控制)。
**************************
S reejith N air
**************************
嗨Sreejith,
您是否记得调整初始控件的大小。它有可能覆盖较新的控件。
-
快乐编码!
Morten Wennevik [C#MVP]
ya ya。拆分后我创建了拆分控件并将其添加到我的
面板。
使用panel.controls.add(lbl_instance);
没用......
hi Morten Wennevik
i认为你不明白这个问题。我会解释一下。
一旦你拆分了contriol,那么splites将会进入一个comon位置
(比如持有位置)并且父控件会自动处理。
所以没有合并或其他的问题。
你需要注意的是,如果我点击分裂控件那么分裂之后
它将像标签控制一样正常工作。我可以用我的
应用程序做任何事情。
如果我没有点击分裂控件那么它将从该面板消失
它正在做其他一些工作。
i认为你有疑问。
如果没有随时与我联系。
hi there,
I have a panel control which contain more than 10 label
controls. these label controls are added dynamically by user.
In this application user can slit a control into not less than 10 different
shares.
(don''t worry about this. If a user select a control to split into 5 or 10. i
am simply creating 5 or 10 controls which have the size 5/10 or 10/10 of the
control which took to split.)
My question is something different. After spliting if i click on that
different split then it will maintaine their state. Otherwise say if i am
doing someother work just after sppliting the control it will vanish from
that panel.
tell me what happen to my kids(splitted controls).
**************************
S r e e j i t h N a i r
**************************
Hi Sreejith,
Did you remember to resize the initial control. Chances are it is covering the newer controls.
--
Happy coding!
Morten Wennevik [C# MVP]
ya ya. After spliting i am creating splited controls and adding it to my
panel.
using panel.controls.add(lbl_instance);
no use....
hi Morten Wennevik
i think you didn''t understand the question. I will explain.
Once you split the contriol then the splites will come in a comon location
(say holding location) and the parent control will automatically dispose.
So there is no questiong of merging or something else.
What you have to notice that , after spliting if i click on splited control
it will work normally like label control. And i can do any hell with my
application.
If i am not clicking the splited control then it will vanish from that panel
it am doing some other work.
i think you got my doubt.
If not feel free to contact me.
这篇关于分裂控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!