??

解决方案 »

  1.   

    this.comboBox1.DrawMode=System.Windows.Forms.DrawMode.OwnerDrawVariable;
    this.comboBox1.ItemHeight=50;
      

  2.   

    using System.Runtime.InteropServices;private const int CB_SETITEMHEIGHT = 0x153;[DllImport("user32.dll", EntryPoint="SendMessageA")]
    private static extern int SendMessage (IntPtr hwnd, int wMsg, int wParam, int lParam);
    MessageBox.Show(SendMessage(this.comboBox1.Handle, CB_SETITEMHEIGHT, -1, 50).ToString());
    for(int i = 0; i < 10; i++){
    this.comboBox1.Items.Add("hello" + i.ToString());}
      

  3.   

    this.comboBox1.DrawMode=System.Windows.Forms.DrawMode.OwnerDrawVariable;
    this.comboBox1.ItemHeight=50;
    学习。
      

  4.   

    this.comboBox1.DrawMode=System.Windows.Forms.DrawMode.OwnerDrawVariable;
    this.comboBox1.ItemHeight=50;
    设置以后,下拉列表中的item是白色的,很奇怪?