|
Is it your own temp folder, or the system one? If it shared (system one) you can't really avoid this, and you can do what Pete said... if it's your own temp, you are probably forgeting to close some file - which is something you should fix. You can see who is locking the file with ProcessExplorer[^]
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
What about acess rights of the folder being deleted?
|
|
|
|
|
Wouldn't error message be different?
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I certainly would.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I want to realize the following:
During one loop, a status form window is displayed, it is closed when the loop is done. but I want to stop the loop before the loop finishes. I have one button on the status form to be clicked to stop. but no response when I click it. How to do it?
thanks!
|
|
|
|
|
Hello,
You have to call "Application.DoEvents()" inside the loop.
All the best,
Martin
|
|
|
|
|
Hi, Martin,
thanks a lot. It does work.
However, I met another problem.
when I click the button to stop the loop, the firt click does not work, that means I have to click two times, after that, then it work perfect.
further I found that I have to click the form window first then I can handle this window, or else I can not. I tried to use Activate() and Focus(), neither works, Could you please give me one hint for that?
thanks a lot.
|
|
|
|
|
well, you must have some condition inside your loop, you have to "and" that condition with a boolean flag which is set when the cancel button is clicked.
eg
bool cancel = false;<br />
<br />
while(yourCondition && !cancel)<br />
{<br />
}
Then your cancel button would just set that cancel variable to true. You will need to do your loop within another thread in order to keep the form responsive.
|
|
|
|
|
when my program login server how to choose the right server(CHINA TELECOM or China Netcom ...) and how to choose the nearest server?
|
|
|
|
|
I am using SqlCommandBuilder to update data in DataSet to DB and I got a problem is:
DataSet includes 2 tables : 1 is Master and the other is Detail
1. When user adds new row in DataTable => This record must be insert into Master table first, and then it will be inserted
into Detail Table.
2. When user delete data in DataTable => This record must be deleted in Detail Table first, and then it will be deleted
in Master Table.
User can add new, edit or delete data in DataTables until they click Save button => Update data in DB.
Please help me how can I do this with SqlCommandBuilder.
Thanks a lot.
pvphuc
|
|
|
|
|
Hi all!
I want information on , how to integrate resumegrabber software with .net OR is there any way to merge database of resumegrabber with sql server database.
Regards,
Amol G.
|
|
|
|
|
In C#.net windows application
in design view i am just placing the datagridview control
in form load event i am dynamically defining the columns and then adding rows so every time there is an extra row is coming and one column is image column so extra row displaying the image "x".
In order to avoid this extra row what should I do
Please help me
Praveen Kumar Palla
|
|
|
|
|
Set the AllowUsersToAddRows property of the DataGridView to False
Hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Andrei
Thank you very much
It is very useful to me.
|
|
|
|
|
|
The link works for me. What is your problem?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
2 things:
1. Pay attention to rule 7 on forum usage.
2. You only posted your original question 90 mins ago. Please be more patient!
Paul Marfleet
|
|
|
|
|
pmarfleet wrote: 1. Pay attention to rule 7 on forum usage.
And rule 3, and...
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I think I understand your problem. This is in the C# forum, the link takes us to the ASP.NET forum. You've found the 'cross post' bug. To prevent this bug from happening, stick with your original posts, in the original forums and give the people answering your questions a little more help/information than you are doing.
People will spend less time on your numerous posts if you start to cross post / duplicate posts / just post links to other posts you've already made.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
It's here usual practice. She will post in one forum and do advertise that in all other forums.. Interesting right ?
|
|
|
|
|
N a v a n e e t h wrote: Interesting right
wrong!
|
|
|
|
|
I just wish she'd buy a bloody book.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
heloo.... i want to hide the base class method using new operator.
i tried this code.but it was not working.here base class method is calling.
plz help me soon.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication23
{
class Program:user
{
public new void print()
{
Console.WriteLine("hello how are you?");
}
static void Main(string[] args)
{
user u = new Program();
u.print();
Console.ReadLine();
}
}
class user
{
public void print()
{
Console.WriteLine("hellohello");
}
}
}
sravani.p
|
|
|
|
|
Hey, the 'new' keyword is to explicitly hide the base class members
But, if you want to use it, you have to call the method from the derived class. In this case you surely need to create a reference of the derived class other than a original base class reference.
Since you have already created the Program object to a user reference, all you need to do is to perform a cast:
(Program)u.print();
regards
Someone was born greatness;
Someone achieved greatness;
Someone let the greatness thrust upon him;
|
|
|
|
|
Try this [^] article.
Hope it helps.
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|