title: ComboBox changing style when manually drawing items
body: <p>I am having a weird issue here where my combobox is changing its style from <code>DropDownList</code> to <code>DropDown</code> and only visually. Checking the <code>DropDownStyle</code> property of my combobox shows its set to <code>DropDownList</code>.</p>
  
  <p>Basically here is what I am doing:</p>
  
  <pre><code>void InitComponents()
  {
              ddlInterval.DrawMode = DrawMode.OwnerDrawFixed;
              ddlInterval.DrawItem += new DrawItemEventHandler(DrawIntervalItems);
              List&lt;IntervalItem&gt; backupIntervalsList = new List&lt;IntervalItem&gt;();
              IntervalsList.Add(new IntervalItem(5, GetIntervalString(5)));
              IntervalsList.Add(new IntervalItem(15, GetIntervalString(15)));
              IntervalsList.Add(new IntervalItem(30, GetIntervalString(30)));
              IntervalsList.Add(new IntervalItem(60, GetIntervalString(60)));
              IntervalsList.Add(new IntervalItem(120, GetIntervalString(120)));
              IntervalsList.Add(new IntervalItem(240, GetIntervalString(240)));
              IntervalsList.Add(new IntervalItem(480, GetIntervalString(480)));
              IntervalsList.Add(new IntervalItem(720, GetIntervalString(720)));
              IntervalsList.Add(new IntervalItem(1440, GetIntervalString(1440)));
              ddlInterval.DataSource = IntervalsList;
              ddlInterval.DisplayMember = "Name";
              ddlInterval.ValueMember = "Value";
  }
  
   void DrawIntervalItems(object sender, DrawItemEventArgs e)
          {
              if(_bDisableItems)
              {
                  switch (e.Index)
                  {
                      case 5:
                      case 7:
                      case 8:
                          {
                              string s = ddlInterval.GetItemText(ddlInterval.Items[e.Index]);
                              e.DrawBackground();
                              e.Graphics.DrawString(s, ddlInterval.Font, Brushes.Black, e.Bounds);
                          }
                          break;
                      default:
                          {
  
                              string s = ddlInterval.GetItemText(ddlInterval.Items[e.Index]);
                              e.Graphics.FillRectangle(SystemBrushes.Window, e.Bounds);
                              e.Graphics.DrawString(s, ddlInterval.Font, Brushes.LightSlateGray, e.Bounds);
                          }
                          break;
                  }
              }
          }
  </code></pre>
  
  <p>Here is an image that shows the difference between two of my comboboxes. Note that both have their <code>DropDownStyle</code> set to <code>DropDownList</code> yet only the one on the bottom has its items manually drawn:</p>
  
  <p><img src="https://i.stack.imgur.com/RVJZq.png" alt="Difference between comboboxes"></p>
  
  <p>Is there a way to overcome this issue?</p>