public LynnTextbox() { this.ImeMode = ImeMode.On; if (UIManager.Enabled) { this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false); native = new NativeBorder(this, 0x85 /* WM_NCPAINT */); } }
public LynnCombobox() { native = new NativeBorder(this, 0xf /* WM_PAINT */, true, false); native2 = new NativeBorder(this, 0x85 /* WM_NCPAINT */, true, false); base.DrawMode = DrawMode.OwnerDrawFixed; this.IntegralHeight = false; stringFormat = new StringFormat(StringFormatFlags.NoClip | StringFormatFlags.NoWrap); stringFormat.LineAlignment = StringAlignment.Center; stringFormat.Trimming = StringTrimming.EllipsisCharacter; stringFormat.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None; OnFontChanged(EventArgs.Empty); }