小编ula*_*ekh的帖子

ComboBox SelectionChangeCommitted事件不适用于AutoComplete

这是一个简短的程序,可以重现我刚遇到的问题.这是在带有.NET 4.0的MS Windows 7下编译的,以防万一有所不同.

using System;
using System.Drawing;
using System.Windows.Forms;

// Compile with "csc /target:exe /out:comboboxbug.exe /r:System.dll /r:System.Drawing.dll /r:System.Windows.Forms.dll comboboxbug.cs"
// in a Visual Studio command prompt.

static class Program
{
    [STAThread]
    static void Main()
    {
        //Create a label.
        Label oLabel = new Label();
        oLabel.Location = new Point (10, 10);
        oLabel.Size = new Size (100, 15);
        oLabel.Text = "Combo box bug:";

        // Create a combo-box.
        ComboBox oComboBox = new ComboBox();
        oComboBox.Location = new Point (10, 50);
        oComboBox.Size = new Size …
Run Code Online (Sandbox Code Playgroud)

c# combobox autocomplete winforms

8
推荐指数
1
解决办法
6429
查看次数

标签 统计

autocomplete ×1

c# ×1

combobox ×1

winforms ×1