internal void ShowIntellisenseBoxWithoutUpdate() { if (m_CodeTextBox.IntellisenseTree == null) { return; } //our box has some elements, choose the first try { m_CodeTextBox.IntellisenseBox.SelectedIndex = 0; } catch { } //Get top-left coordinate for our intellisenseBox Point topLeft = m_CodeTextBox.GetPositionFromCharIndex(m_CodeTextBox.SelectionStart); topLeft.Offset(-35, 18); #region Place the intellisense box, to fit the space... if (m_CodeTextBox.Size.Height < (topLeft.Y + m_CodeTextBox.IntellisenseBox.Height)) { topLeft.Offset(0, -18 - 18 - m_CodeTextBox.IntellisenseBox.Height); } if (m_CodeTextBox.Size.Width < (topLeft.X + m_CodeTextBox.IntellisenseBox.Width)) { topLeft.Offset(35 + 15 - m_CodeTextBox.IntellisenseBox.Width, 0); } if (topLeft.X < 0) { topLeft.X = 0; } if (topLeft.Y < 0) { topLeft.Y = 0; } #endregion m_CodeTextBox.IntellisenseBox.Location = topLeft; m_CodeTextBox.IntellisenseBox.Visible = true; m_CodeTextBox.Focus(); }