public NeoTabWindow() { this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.SupportsTransparentBackColor | ControlStyles.ResizeRedraw, true); renderer = new DefaultRenderer(); renderer.TabControl = this; tooltipRenderer = new TooltipRenderer(); InitStyles(); }
private void btnApply_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection selectedRows = AddInsTable.SelectedRows; DataGridViewRow selectedItem = selectedRows[0]; // Gets the control renderer class from the first column of the selected item. this.Renderer = (RendererBase)selectedItem.Cells[0].Value; }
public DDPaintCursor(RendererBase renderer) { Renderer = renderer; }