I have a button and I use Process.Start when I click on it, although I select the data from textBox1.Text.
Although this data in textBox1.Text does not display correctly if there are spaces in textBox1.Text
eg. textBox1.Text = testing_123 works
although textBox1.Text = testing 1 2 3 does not work (it will only include “testing”)
Code below:
private void button19_Click(object sender, EventArgs e)
{
Process.Start("test.exe", textBox1.Text);
}
source
share