internal void AddUserControl(UserControl control) { _parentHandle = GetParent(Handle); _subClassingWindow = new SubClassingWindow(_parentHandle); _subClassingWindow.CallBackEvent += OnCallBackEvent; control.Dock = DockStyle.Fill; Controls.Add(control); AdjustSize(); }
internal void AddUserControl(UserControl control) { _parentHandle = GetParent(Handle); _subClassingWindow = new SubClassingWindow(_parentHandle); _subClassingWindow.CallBackEvent += OnCallBackEvent; if (control != null) { control.Dock = DockStyle.Fill; Controls.Add(control); } AdjustSize(); }
internal void AddUserControl(UserControl control, IntPtr vbeHwnd) { _parentHandle = GetParent(Handle); _subClassingWindow = new SubClassingWindow(_parentHandle, vbeHwnd); _subClassingWindow.CallBackEvent += OnCallBackEvent; if (control != null) { control.Dock = DockStyle.Fill; Controls.Add(control); } AdjustSize(); }