Expand|Select|Wrap|Line Numbers
- label1.Location = new Point(3, 3);
- label1.Size = new Size(Size.Width - 3 * 2, (Size.Height - 3 * 2) / 3);
- label1.BackColor = Color.Black;
- label1.BringToFront();
- label1.UseCompatibleTextRendering = true;
- label1.TextAlign = ContentAlignment.MiddleLeft;
- label1.ForeColor = Color.FromArgb(255, 70, 160, 122);
- label1.Font = new Font("Palatino Linotype", label1.Height, FontStyle.Regular, GraphicsUnit.Pixel);
- label1.Text = "gpGP";
I'd like to know how to auto size the text height to fit the height of the label so that the text doesn't get cut off, I'm not interested if it fits in width wise, since the next part I'm interested in is how do I make it so that if the width of text is longer then the label, that it'll slide across to the left, and then slide back in on the right when it's gone, and then when it reaches the left, it'll wait for a period of time and then start all over.