Пример #1
0
        internal void AddUserControl(UserControl control)
        {
            _parentHandle      = GetParent(Handle);
            _subClassingWindow = new SubClassingWindow(_parentHandle);
            _subClassingWindow.CallBackEvent += OnCallBackEvent;

            control.Dock = DockStyle.Fill;
            Controls.Add(control);

            AdjustSize();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }