bloquear edicion de combobox y agregar datos al combobox en C#
Código
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace BasedeDatos
{
public partial class ComboBox : Form
{
//Inicializa el Form
public ComboBox()
{
InitializeComponent();
//No se cambie el Contenido del ComboBox
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
//Agregar Información al ComboBox
comboBox1.Items.Add(«Producto 1»);
comboBox1.Items.Add(«Producto 2»);
comboBox1.Items.Add(«Producto 3»);
}
//Fin de Inicializa el Form
private void ComboBox_Load(object sender, EventArgs e)
{
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button1_Click_1(object sender, EventArgs e)
{
}
}
}