Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            popupSearchBox.Location = new Point(textBox1.Location.X, textBox1.Location.Y + textBox1.Height + 3);
            popupSearchBox.Visible  = false;
            popupSearchBox.Width    = textBox1.Width;

            // Must add the navigator to the Form itself.
            this.Controls.Add(popupSearchBox);

            // Add to the contain first then bring to front, or it will not have effect.
            popupSearchBox.BringToFront();
        }