该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我现在想要实现一个功能就是数据的导入 从mysql数据库中提取数据然后导入到ComboBox2的下拉列表中
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;
using MySql.Data.MySqlClient;
namespace AutoCompleteComboBoxForms
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//窗体加载
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.Items.Add("12345678");
comboBox1.Items.Add("13131331");
comboBox1.Items.Add("42444453");
comboBox1.Items.Add("75757775");
comboBox1.Items.Add("43677689");
comboBox1.Items.A