Example #1
0
        void SelectedItellisense(object sender, IntellisenseEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Intellisense))
            {
                txbQuery.Text = e.Intellisense;
            }

            txbQuery.Focus();
            txbQuery.SelectionStart = txbQuery.Text.Length;
            HideIntellisense();
        }
Example #2
0
        void intellisenseWPFControl_ToolTipChanged(object sender, IntellisenseEventArgs e)
        {
            if (string.IsNullOrEmpty(e.Intellisense))
            {
                return;
            }
            IntellisenseToolTip.Text = e.Intellisense;
            Point newLoac = new Point(WPFHost.Location.X + WPFHost.Size.Width + 5,
                                      WPFHost.Location.Y + 5);

            IntellisenseToolTip.Location = newLoac;
            IntellisenseToolTip.Visible  = true;
            IntellisenseTimer.Start();
        }