What if, we need a panel, that would hold two controls in the following manner:
(the panel is the red container, and it has to be hexagonal, holding two input fields, the way it is drawn)
Well, hexagonal panels do not exist, but we can simulate them by changing two style attributes of the second control.
Let
ctrl2.Style.Add("POSITION","absolute");
ctrl2.Style.Add("RIGHT","20px");
and so, we will obtain the following:
The panel still holds both controls, even if it is not so obvious any more.
No comments:
Post a Comment