private void imagePanel_Paint(object sender, PaintEventArgs e) { if (_item != null) { IntPtr hdc = e.Graphics.GetHdc(); Factory.NativeProxy.DrawFont(hdc, 0, 0, _item.ID); e.Graphics.ReleaseHdc(); } }