Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi
I am facing problem in overlapping of UserControls in a cell ( row = 0; col = 0;) of Grid. For example In Grid, at row = 0 and col = 0, I displayed Circle (this is UserControl). Now I would like to display 2 smaller circles ( these are also UserControls) in main Circle without over lapping. Could you please send me the sample code for this.

Thanks&Regards
Subba
Posted
Updated 21-Jan-11 2:56am
v2
Comments
Indivara 21-Jan-11 8:56am    
Added tag
Sergey Alexandrovich Kryukov 21-Jan-11 15:20pm    
All I can answer: learn a bit of elementary geometry and check up your coordinates.

1 solution

I'm not quite sure what exactly you mean by "avoid overlapping". First you want to place two smaller circles into a big circle, but then they should not overlap. This is a very contradictory statement I have to say.
Maybe you wanted to say instead that you would like to place your two small circle controls INTO the bigger circle control. This implies of course that the big circle control has to behave like a container.

Please clarify your exact requirements.
Thanks!
 
Share this answer
 
Comments
Nish Nishant 21-Jan-11 9:56am    
Perhaps he wants the 2 smaller circles to be separate (no overlap). Maybe his outer circle is not big enough to contain the 2 smaller circles without some overlap between the smaller circles. If so I wonder why he does not just make the outer circle bigger.
Sergey Alexandrovich Kryukov 21-Jan-11 15:21pm    
Manfred, you right.
Perhaps right answer is that I put in my comment to the Question above.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900