Windows forms overlapping controls
Bruce Top achievements Rank 2. Bruce asked on 28 Aug , PM. I would like to use the commandBar, and have it not overlap a docked control, as you can see in the attached image, it covers the first line of text.
How would one accomplish this? Add a comment. Submit comment. Sort by Score Date. Z-order is the visual layering of controls on a form along the form's z-axis depth. The window at the top of the z-order overlaps all other windows. All other windows overlap the window at the bottom of the z-order.
For example, if a TextBox control, txtFirstName , is underneath another control and you want to have it on top, use the following code:. Windows Forms supports control containment. Control containment involves placing a number of controls within a containing control, such as a number of RadioButton controls within a GroupBox control. You can then layer the controls within the containing control. Active Oldest Votes. Left - Left, otherctl.
Top - Top, otherctl. Width - 1, otherctl. Height - 1 g. FillEllipse Brushes. Red, where g. DrawEllipse Pens. PaintEventArgs MyBase. OnPaintBackground e DrawMe e. EventArgs Handles Me. Click Me. Move, Me. CreateGraphics g. Clear c. BackColor c. DrawMe g, c c. Left, c. Top, c. Width, c. IntersectsWith c. CreateGraphics ictl. CreateGraphics Me. DrawMe g, ictl.
FastAl FastAl 6, 2 2 gold badges 35 35 silver badges 59 59 bronze badges. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
0コメント