Spliting Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
Could you explain in a little more detail exactly how you "split" the controls. Horizontally, Vertically.
Do they overlap?
Do they disappear if you minimize, then maximize your window, or just cover the controls with another program which you then remove?
Could you show us the code you use for splitting the controls?
 
Hm, I'm afraid I can't say what the problem is at the top of my head.
Some code which we could test on our own would be nice.
 
hi there,

i am spliting horizontally. You forget about coding.

if i click and split a label it won't over lap any where or it won't near or
over to old label(the splited).
It will come in a region (fixed) of our panel.

And there is no button given for minimizing the form.

To be simple. After spliting i need to trigger some event of that splited
control (like click,drag,mouseover etc) then it will there always until and
unless i place somewhere in that panel.


If i am not doing any click or any hell events it will go of when i do some
other operation.

i don't have any problem to include the code. It is too very serious for
this small windows. Still you want then i can.





After spliting it will come one plave
 
hi , "Morten Wennevik"

You shown a nice and continous interest on my problem. thanks for your
support.
My self sreejith and a active messageboard partner of codeproject.com.

But what i will do Your answers doesn't serve my issue.

Anyhow thank you very much
 
I am sorry, I can't see why the controls vanish (either becomes invisible, hidden or destroyed).
 
What area does give you trouble?

Events don't work?
Placement incorrect?
....

- Joris
 
Back
Top