public void HostControl(Control c, string name) { DocumentForm frm = new DocumentForm(c) { ShowHint = DockState.Document }; frm.Show(m_dockPanel); if (!string.IsNullOrWhiteSpace(name)) { frm.TabText = name; } }
public void CreatePropertyGrid(bool autohide) { if (m_property_grid == null || m_property_grid.IsDisposed) { m_property_grid = new PropertyGrid(); m_property_grid.ToolbarVisible = false; m_property_grid.PropertySort = PropertySort.Alphabetical; DocumentForm frm = new DocumentForm(m_property_grid); frm.TabText = "Object Properties"; frm.ShowHint = autohide ? DockState.DockRightAutoHide : DockState.DockRight; frm.Show(m_dockPanel); } }
private void FocusOnTextBoxFilter() { // user hit search so we set the input focus into the first inputbox (which is usually a filter input) DocumentForm df = m_dockPanel.ActivePane.ActiveContent as DocumentForm; if (df == null) { return; } Control[] textBoxFilters = df.Controls.Find("textBoxFilter", true); if (textBoxFilters.Length != 1) { return; } textBoxFilters[0].Focus(); }