![]() The drawings which you draw on the Graphics object of a Control will be drawn on surface of the control and can not be drawn over the child controls or other stacked controls. ![]() Private void Timer_StopClock_Tick(object sender, EventArgs e)ĭon't use a TextBox to show the text, draw the text yourself. Using (GraphicsPath gp = new GraphicsPath()) MRotate.RotateAt(theta, new Point(0, 0), MatrixOrder.Append) MRotate.Translate(bmpSrc.Width / -2, -bmpSrc.Height, MatrixOrder.Append) mRotate.Translate(bmpSrc.Width / -2, bmpSrc.Height / -2, MatrixOrder.Append) Public static Bitmap rotateCenter(Bitmap bmpSrc, float theta) / Rotates the input image by theta degrees around center. Private void PictureBox1_Paint(object sender, PaintEventArgs e)Į.Graphics.TranslateTransform((pictureBox1.Width - rbmp.Width) / 2, Panel_digital_Timer.BackColor = Color.Transparent // Change parent for overlay PictureBox. ![]() pictureBoxOverlay.BackColor = Color.Transparent Private void Form1_Load(object sender, EventArgs e) How can i move the clocks hand in front of my panel/label? public partial class Form1 : Form I also tried doing something like this panel_digital_Timer.Parent = pictureBox1 which made a transparent panel. I also tried moving my panel/label to the back and the hand to the front and that didn't work well either. ![]() I tried to paint the hand on top of my panel/label but I wasn't successful. The problem is the clocks hand is going under my panel/label. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |