|
Use the Directory.CreateDirectory method.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
See: http://msdn2.microsoft.com/en-us/library/system.io.directory_members.aspx
Directory.CreateDirectory(INSERT_FOLDER_NAME_HERE);
Enjoy!
|
|
|
|
|
Hello,
I have created one Window Application using C# which I can successfully install after going throu with the publication process. How can I create a second Window Application which is part of the first Application Installation and the user carry only one installation in order to have both window applications?
Thank you in advance for your help
Khoramdin
|
|
|
|
|
Khoramdin wrote: How can I create a second Window Application which is part of the first Application Installation and the user carry only one installation in order to have both window applications?
Add it to the setup project in the same way as the first. This is easy if both applications are part of the same solution.
|
|
|
|
|
Hello Colin,
Thanx for the reply. I am not sure what you mean by that. Could you give some more detail about this or point me to a tutorial.
Thanx
Khoramdin
|
|
|
|
|
I would integrate matlab with C#, but i don't know why i can do it,
please help me.
|
|
|
|
|
|
I am creating a testing harness for my app and merrily loading assemblies using reflection into a seperate app domain.
What i was hoping to be able to do is unload the App Domain - releasing the file lock on the Assemblies. Allowing me to have write access to rebuild them in Visual Studio.
Unfortunately the app still has locks on the assemblies. Can anyone think of what i might be missing?
The code goes something like this:
1) Assembly assembly = reflectionDomain.Load(filename);
2) AppDomain.Unload(reflectionDomain);
Anyone any clues?
Cheers
Rich
|
|
|
|
|
There is a known issue with file locks when images are involved.
Image.FromFile(fileSpec) keeps fileSpec open; a work-around consists of a small
class that immediately copies the image to another image, and then disposes of the
original.
Maybe that's what you are experiencing...
Luc Pattyn
|
|
|
|
|
How do you generate documentation from the C# file commented properly with a command-line compiler?
Thank you.
Vasini
|
|
|
|
|
Take at look at the Sandcastle[^] project.
If you search here on code project, you will find that someone (I can't recall the name right now) has written a GUI for Sandcastle.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hello gurus,
I'd like to know if it is possible to register CDOEXM.DLL and CDO.DLL from Exchange Server 2003 on Windows XP in order to compile a project that uses these libraries with Visual Studio 2005?
I wish to avoid programming in C# on a Windows Server with Exchange.
How can register these libraries on XP?
Thanks.
Fred.
There is no spoon.
|
|
|
|
|
I have a program that I want to write on a textarea before it goes thru the the loop, and for some reason it just hands there and write to the text area after it finished going thru the loop.
I tried putting a Thread.Sleep timeout of 5 seconds and it still doesn't display the text. How can I get it to display the text before it enters to the loop.
<br />
messageRTB.Text= "Running \r\n";<br />
messageRTB.Text += " Please Wait, this will take a while...";<br />
Thread.Sleep(5000);<br />
for (int i=1; i<=Num; i++)<br />
{<br />
}<br />
|
|
|
|
|
Eddymvp wrote: I have a program that I want to write on a textarea before it goes thru the the loop, and for some reason it just hands there and write to the text area after it finished going thru the loop.
You are not allowing the user interface a chance to update the display. It only does this once it has finished processing your request. The request doesn't finish until it goes through the loop.
There is a way to get it to refresh the display, but I can't remember how off the top of my head.
|
|
|
|
|
Thanks alot, I didn't know there was a refresh method.
I solved the problem by using this.Refresh();
|
|
|
|
|
Calling the Refresh method does update the display, but the window remains unresponsive. If you want it to handle events (like moving the window, or redrawing it in case the user switched to another window while waiting), you should call the DoEvents method instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks for the reply Guffa, I didn't think that was possible to do.
I tried going to this.DoEvent and it wasn't on the list, can you give me an example on how I would call that method?
|
|
|
|
|
|
Thanks for the reply, I'm making more progress, now that I can move the windows and the proccess is going too long. The Application doesn't allow me to click any buttons until it executes that loop, Which other methods do I have to call to be able to perform that request.
|
|
|
|
|
The best bet would be to create a thread to process the loop in the background, if you're using .NET 2 then there's a BackgroundWorker class which takes away most of the headaches of creating and managing your own threads. Basically you have an event which when called you do your work (this occurs in a different thread) and there are methods of returning progress data in a thread safe manner to the form to update. This should result in now hangs and the user can continue using the program as normal.
|
|
|
|
|
|
I know, I wouldn't use it but couldn't find the method so I pointed him in the right direction.
|
|
|
|
|
You need to assign the loop code to a thread...
|
|
|
|
|
Calling the Refresh method should resolve your problem:
messageRTB.Text += " Please Wait, this will take a while...";
messageRTB.Refresh();
Thread.Sleep(5000);
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hey, I'm new to C# and I have a question regarding enumerators I was hoping someone can answer for me. My question is what is the purpose of giving an enumerator a base type if you still have to explicitly convert it?
Thanks, a bunch.
Terrance C.
|
|
|
|