blah blah blah is here! blah blah » Close

0
votes
1 answers

Properly grabbing console input when running java app in C#?

Hi. I am trying to open a command window and read/write it from a C# forms app. I have a textbox "textBox1" to display output and "textBox2" for me to type commands to the cmd process. This is the code: [code] Pro ...

1
votes
0 answers

Installer problem in VS2008 C#, program doesn't finish install until shortcut clicked

Hi. I have a service project in C#. If I install it on a clean box, it works and installs fine. Post install my shortcut appears on the desktop (to a user-interactive info display mode for my service), the service installs and starts fin ...

0
votes
1 answers

Extracting a file from a resource file?

I have an embedded executable file that my program is going to use to do something. I want to extract the file from the resource file so I can run it. I have two versions of my app, one a GUI and one a console. The gui works fine like th ...

0
votes
1 answers

Restoring a window from systray, doesn't wanna focus?

I have an app where the minimize button on the form causes the form to minimize to the systray. The notifyicon is set so if I click it, the form is recalled. Problem is, the darned thing won't appear. It's hidden from the taskbar when mi ...

0
votes
1 answers

Create control with variable name?

I need to create a set of progressbars and labels a variable amount of times. My program has download threads, and I want the user to be able to select as many as they want. It's easy to calculate the widths and placements, scaling to fit ...

0
votes
1 answers

Looping a file rename pending unlock?

I have a file being downloaded and when it's done, I want to rename it. Problem is sometimes the system moves to the rename code faster than the FTP download can release the file lock so it throws an exception that the file is locked. Thr ...

0
votes
1 answers

How to make a spawned thread terminate itself?

I have a primary thread that will fire off up to three worker threads. It's an FTP application. Each worker will connect to an FTP site and download files. The main thread will have no way I can think of to know when the worker is done d ...

0
votes
1 answers

Getting video file runtime?

Has anyone seen any code snippets showing how to open a video file and getting the runtime (# of mins, seconds, etc)? I have a variety of formats I need to check; avi, mpg, mkv, ogm and right now I'm shelling out to use the command line to ...

0
votes
1 answers

Multiple queries to a MySQL, having problems

Hi. I need to be able to query a MySQL DB multiple times. Alas, on the second time I get "Connection must be valid and open". I'm trying to figure it out, but having some problems. This is what I have: using (MySqlConnection ...

Feedback