I want to change the background of DropDown list in windows application. with the help of
Ddl.BackColor =Color.Aqua; i am able to set the Background od Ddl but when i set Ddl property as Enable=false then its not working. kindly give so idea how can i change the background color of Ddl when Ddl.enable=false.
Thnak in advance.


Anubhav ChaudharyRank #29 · 42K reputationPosted Jan 13, 2014, 10:18 PM EST
You can try this on Page Load Event:
TextBox1.Enabled = false;
TextBox1.ForeColor = System.Drawing.Color.Black;
Dhirendra MisraRank #4,173 · 360 reputationPosted Jan 13, 2014, 9:43 PM EST
There is similar post.
Please check.
http://p2p.wrox.com/c/33970-combobox-backcolor-change.html
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 13, 2014, 11:40 PM EST
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Combobox
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
comboBox1.Enabled = false;
comboBox1.BackColor = Color.Aqua;
comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
}
}
}