Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #44.2K
3 Posted Topics
Which part is slow? Building the file list or searching the file? I assume you are using one Word instance to do the searching.
Something like this works ... [CODE] private void Form1_Load(object sender, EventArgs e) { btn0.Click += new EventHandler(ButtonClickHandler); btn1.Click += new EventHandler(ButtonClickHandler); // etc. } private void ButtonClickHandler(object sender, EventArgs e) { Button btn = (Button)sender; if (btn == btn0) { // Handle btn0 ... // etc. } }[/CODE]
Add PAUSE to the bottom of the batch file so the console doesn't open and close so fast you don't notice.
The End.
viljoed