I use the following template for some labels I am creating. When I run this on XP the AutoEllipsis doesn't work, on Windows 7 it does.
Code:Class DefDvc Public Dvc As Label Public Sub New() 'set default characteristics of label Dvc = New Label Dvc.Anchor = AnchorStyles.Top Or AnchorStyles.Left Dvc.Size = New Drawing.Size(90, 70) Dvc.ImageAlign = ContentAlignment.TopCenter Dvc.BorderStyle = BorderStyle.FixedSingle Dvc.BackColor = Color.LightBlue Dvc.Text = String.Format("{0}", "8".PadLeft(12, "8"c)) Dvc.TextAlign = ContentAlignment.BottomCenter Dvc.AutoEllipsis = True Dvc.AutoSize = False Dvc.Text = "" Dvc.Image = My.Resources.Def End Sub End Class




Reply With Quote
