private void button1_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { using (FileSplit fs = new FileSplit(textBox1.Text)) { int x = 1024; int index = comboBox1.SelectedIndex; while (index-- != 0) { x *= 1024; } fs.Split(int.Parse(textBox2.Text) * x, folderBrowserDialog1.SelectedPath); } } }