Click here to Skip to main content
15,885,198 members
Articles / Desktop Programming / Windows Forms

Autocomplete Menu

Rate me:
Please Sign up or sign in to vote.
4.89/5 (239 votes)
19 Mar 2015LGPL35 min read 827.2K   28.8K   390  
Customizable autocomplete menu for RichTextBox, TextBox and other controls
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using AutocompleteMenuNS;

namespace Tester
{
    public partial class DynamicTooltipSample : Form
    {
        public DynamicTooltipSample()
        {
            InitializeComponent();
        }

        private void autocompleteMenu1_Hovered(object sender, HoveredEventArgs e)
        {
            if (e.Item != null)
            {
                e.Item.ToolTipTitle = "Dynamic tooltip";
                e.Item.ToolTipText = "This tooltip was dynamically generated for item " + e.Item.ToString();
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer Freelancer
Ukraine Ukraine
I am Pavеl Tоrgаshоv, and I live in Kyiv, Ukraine.
I've been developing software since 1998.
Main activities: processing of large volumes of data, statistics, computer vision and graphics.

Comments and Discussions