Ejemplo n.º 1
0
        public StickyTextBox(StickyPanel panel)
        {
            this.textBox = new TextBox();

            panel.Controls.Add(this.textBox);
            this.textBox.Multiline     = true;
            this.textBox.WordWrap      = true;
            this.textBox.AcceptsReturn = true;
            this.textBox.AcceptsTab    = true;
            this.textBox.TabIndex      = 9;
            this.textBox.Dock          = DockStyle.Fill;
        }
Ejemplo n.º 2
0
        public StickyForm()
        {
            InitializeComponent();

            this.MinimumSize     = new Size(200, 150);
            this.FormBorderStyle = FormBorderStyle.None;
            this.drawTopPanelRect();

            this.topPanel    = new TopPanel(this);
            this.stickyPanel = new StickyPanel(this);

            this.SetStyle(ControlStyles.ResizeRedraw, true);
        }