System.Windows.Forms.AutoCompleteStringCollection.RemoveAt(int)

Here are the examples of the csharp api class System.Windows.Forms.AutoCompleteStringCollection.RemoveAt(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: xenadmin
Source File: Settings.cs
public static void UpdateServerHistory(string hostnameWithPort)
        {
            AutoCompleteStringCollection history = GetServerHistory();
            if (!history.Contains(hostnameWithPort))
            {
                while (history.Count >= 20)
                    history.RemoveAt(0);
                history.Add(hostnameWithPort);
                Properties.Settings.Default.ServerHistory = history;
                TrySaveSettings();
            }
        }