我有组合框,我需要在表单加载时从记事本中获取数据。我的代码是
private string[] items;
private void Form1_Load(object sender, EventArgs e)
{
if (cmbItems.SelectedIndex == -1)
{
items= File.ReadAllLines(@"C:\Users\atchyutkumar\Downloads\data.txt");
}