Hello, I am making a custom control which will serve as a "timeline". An integrated timer moves a line along the control to display where the time is currently. I am inheriting a Panel control for the timeline. When I draw my line, it constantly appears below the controls in the panel. I would like the line to be visible above all of the controls in the panel. Is this possible?
Thanks in advance
Patrick_3
0
Light Poster
Recommended Answers
Jump to PostTry increasing the z-index or just
BringToFront
on the control if you want it at the top level.
Jump to PostYour rectangle is always drawn on the background, the "canvas" of your Panel. Then the other controls are drawn. Just make sure you place them in a position they don't interfere with your rectangle.
All 8 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Patrick_3
0
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Patrick_3
0
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Gé48
1
Newbie Poster
Patrick_3
0
Light Poster
Patrick_3
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.