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 System.Threading; namespace StartMultipleClients { public partial class Main : Form { string filenameLocation = string.Empty; public Main() { InitializeComponent(); } private void btnDialogue_Click(object sender, EventArgs e) { // Displays an OpenFileDialog so the user can select a Cursor. OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "Executable Files|*.exe"; openFileDialog1.Title = "Select WpfClient.exe File"; // Show the Dialog. if (openFileDialog1.ShowDialog() == DialogResult.OK) { for (int loopCounter = 0; loopCounter <= 11; loopCounter++) { Thread.Sleep(100); System.Diagnostics.Process.Start(@openFileDialog1.FileName.ToString()); } } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)