private void buttonDutch_Click(object sender, EventArgs e) { string[] Filelistarray = Directory.GetFiles(@"C:\Users\a961835\Programming", "*.txt"); List<string> fileNames = new List<string>(); foreach (string FileName in Filelistarray) { string filenameWithoutPath = Path.GetFileName(FileName); fileNames.Add(filenameWithoutPath); } toolStripComboBox1.Items.AddRange(fileNames.ToArray()); } private void ComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (toolStripComboBox1.SelectedIndex > 0) { this.textBox1.Text = toolStripComboBox1.SelectedItem.ToString(); } }
private void ComboBox_SelectedIndexChanged(object sender, EventArgs e) { this.textBox1.Text = toolStripComboBox1.Text; }
private void ListTemplate_SelectedIndexChanged(object sender, EventArgs e) { DocumentName = ListTemplate.SelectedItem.ToString(); RefreshForm(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)