Вот что я пробовал:
Код: Выделить всё
protected override void OnPaint(PaintEventArgs e)
{
var msg = string.Empty;
//if (DesignTime)
if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
{
msg = "test";
}
base.OnPaint(e);
e.Graphics.DrawString(LicenseManager.UsageMode.ToString(), Font, Brushes.Blue, 5, 5);
if (!string.IsNullOrEmpty(msg))
{
e.Graphics.DrawString(msg, Font, Brushes.Red, 5, 5);
}
}
Плохое описание того, что я хочу сделать
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-c-sharp
Мобильная версия