|
This link may help you
Do more work
Make more mistakes
Learn more things
|
|
|
|
|
Hello can any body tell me that if i create the file and want it delete it just after creation but when i delete it give me Exception that the file is using by other process
wasim khan
|
|
|
|
|
wasimsharp wrote: if i create the file and want it delete it just after creation but when i delete it give me Exception that the file is using by other process
You have to close the file first.
|
|
|
|
|
you should close your access to that file first and then delete it
|
|
|
|
|
Hi,
Can anyone guide me to write a VC# (.Net 2008) Class Library that can be used in VC# & VC++ (.Net 2008) code?
If I have defined a preprocessor macro XYZ (#define XYZ) in VC#, then how to check that macro in VC++ (using #ifdef, #else, #endif)? Because I tried it, but it was not working properly.
- Aniket A. Salunkhe
|
|
|
|
|
hi i am downloading a zip file.
i need to delete the download when user click close button while download is not completed.when user click the close button while download is not completed i handle the form closing event in which i check if the download is not completed i delete the directory in which the file is placed but when i compile the code i got Exception that:
"The process cannot access the file 'Update.zip' because it is being used by another process."
how i can end this process so that i delete the file easily
wasim khan
|
|
|
|
|
I think the so called process is you project itself, right?
You may check your code and call the method "Close" or "Flush" of a stream that accessing that file.
Maybe I need some of your oritinal code for more information.
Regards,
Dealon
If we dream, every thing is possible!
|
|
|
|
|
Hi All,
Is there any way to format the existing code..........?
Regards
|
|
|
|
|
|
|
Edit->Advanced->Format document (Ctrl+E, D)
|
|
|
|
|
Another solution:
CTRL + K + F
Regards,
Dealon
If we dream, every thing is possible!
|
|
|
|
|
Many overloads of System.Drawing.Graphics use Point array as a parameter. But I've found a puzzling problem with the Point array. The order in which the points are stored in the array creates different shape than intended. I used System.Drawing.Graphics.FillPolygon using four points and two different results came out depending on the order of points(http://img509.imageshack.us/img509/2944/boxch5.jpg[^]). Yes, i could have used the FillRectangle, but i will use figures with more than 4 sides.
I want to know if there is a way to arrange the points so that they have a counterclockwise or clockwise rotation.
|
|
|
|
|
gigahertz205 wrote: The order in which the points are stored in the array creates different shape than intended.
The result is exactly as expected. The FillPolygon doesn't do any calculations to find out which points are nearest to each other, it just draws a polygon using the points in the exact order that you specified.
gigahertz205 wrote: I want to know if there is a way to arrange the points so that they have a counterclockwise or clockwise rotation.
Where do you get the points from, and what's the reason that they are not in that order already?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Well if you look at my previous posts, you will get a basic idea of what im trying to do. I want to divide up an image using arbitrarily oriented lines, and use points of the polygons to edit the contents within that region. Basically, i use two points to create line segments, whose points will be added to Point arrays of that region. But then again, i as i create the line segments, i have no way to enforce which points to add first.
|
|
|
|
|
Hi!
I've just followed an article by Konrad Rotuski about making a simple C# IDE [^] and found it very easy to follow and unserstand, however i am interested in extending it's functionality.
How would i use the compiler to change application properties such as the version and author of the compiled executable?
Thanks!
MrWolfy
|
|
|
|
|
MrWolfy wrote: change application properties such as the version and author of the compiled executable?
You could hack into the executable, but it is best to do this through the source code.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi And Thanks!
Thanks Paul Conrad! That Totally Solved My Problem!
I Just Added this into the program just before compilation:
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("A Title")]
[assembly: AssemblyDescription("Some Description")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Some Company")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
Thanks Again! I Never thought about using the program itself!
Thanks!
MrWolfy
|
|
|
|
|
|
I ditto SharpDevelop. Though I haven't really used it since MS released the Express Editions...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi!
Thanks for the link!
It has really helped me and my project!
Thanks again!
MrWolfy
|
|
|
|
|
Cool deal, dude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Is there any way to code this action with c#?? cmd, batch file.
When I install my application with InstallShield, I have to do this action manually, I want to code this..
thanks
luisnike19
luisnike19
|
|
|
|
|
Could you describe a little more clearly what you are trying to accomplish?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I want to implement with "code" this, in the ISS 7
In IIS when I right-click, I see options "Convert to Application" with Application Pool as “Classic .NET AppPool”
any idea??
thanks
luisnike19
|
|
|
|