|
My guess would be the changes are
1) You editing the file
2) Windows changing the last modified date / antivirus / some file system filter driver
|
|
|
|
|
That's correct behavior. Although you would think one event should be generated, there are actually more file io events happening under the covers that may generate the notification. I'm working with FileWatcher right now and sometime I get four change events when saving a file.
only two letters away from being an asset
|
|
|
|
|
Hello everyone,
When we signal an event (say, invoking set method of ManualResetEvent instance), then two basic questions,
1. no matter how many threads are waiting on the event, all of them will be awoken and executed at the same time, right?
2. If some other threads execute to statement WaitOne, after the ManualResetEvent is signalled -- say, in step (1), but not reset back into non-signalled status, the thread's execution will not be blocked, right?
thanks in advance,
George
|
|
|
|
|
Yes, both are correct. An AutoResetEvent will only release one thread, a ManualResetEvent releases all waiters. Any future thread calling WaitOne (or WaitAny, or WaitAll if all the other objects are also signalled) will be released immediately without blocking, until the event is reset.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Cool, Mike!
Question answered.
regards,
George
|
|
|
|
|
I created a Property Grid and it displays an description at the bottom.
Can anyone please let me know hoe to remove it.
I tried with Description(null) and descriptionattribute(null) , but still it shows the description
Thanks !
|
|
|
|
|
It's cunningly hidden as a property.
progressbar.HelpVisible = false;
|
|
|
|
|
Thanks for your Help . It worked. Not Sure Why in .NET they have did the property Like that !
|
|
|
|
|
i am trying to update my customers table in the northwind database from XML file.
Getting an Wrror
Violation of PRIMARY KEY constraint 'PK_Customers'. Cannot insert duplicate key in object 'dbo.customers'.
i used SqlCommandBuilder to build insert,update and delecte commands.
DataSet DSRead = new DataSet();
DSRead.ReadXml("output.xml");
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = new SqlCommand (queryString, connection);
SqlCommandBuilder builder = new SqlCommandBuilder(adapter);
connection.Open();
DataSet dataSet = new DataSet();
adapter.Fill(dataSet, tableName);
dataSet = DSRead;
//code to modify data in DataSet here
builder.GetUpdateCommand();
//Without the SqlCommandBuilder this line would fail
adapter.Update(dataSet, tableName);
how can i write CommandBuilder to update, insert and delete.
Thx
|
|
|
|
|
How can i use forgot option in asp.net
|
|
|
|
|
Hi,
Does anyone know how to send parameters through to a crystal report in VS 2008?
I keep on getting this dialog that asks me to enter the discrete value of the parameter.
I would like to send the parameter value through code once the user has selected their filter choice.
This is for Windows Form application and I'm using SQL 2005 Express as the database.
I have googled but cant find a working solution.
Thanks
|
|
|
|
|
There are two of these controls in my windows application.
checking the items in the first one should cause the items in the second control to populate.
At present I use the mouse_leave event on the first control to trigger the event to populate the second control.
Is this the proper event I should use? I do not think the selectedIndex event is the correct one for this purpose either. Any suggestions please?
Thanks
|
|
|
|
|
"Translate" what you have to do in terms of events in your application. Then you'll know what event you have to handle.
SkyWalker
|
|
|
|
|
Hi,
Do not find the relevant event.
|
|
|
|
|
I am newly on in programming in c#.net...Can you help me to take fields from data table separately by c# programming 
|
|
|
|
|
I suggest you to chage subject of your question, make it more reasonable if u wanna get answer[^]
I Love T-SQL
|
|
|
|
|
Try reading this:
ADO.NET
or try Google, there are loads of articles on ado.net and c#
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Hi,
I have a VB application with a button.
When I click on that button it must show a windows form application that is made in C#.
How could this be done?
I've heard something about COM object: ComSourceInterfaces
And something about making an interface class file...something like:
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]<br />
public interface _InterfaceClient<br />
{<br />
}
Is this the correct way? If so, does anyone have an good example?
Thanks,
|
|
|
|
|
Hi,
i'm working on an programe that reads several items from an MySql Database,
i've got the connection working. but for the last couple of days i've been struggeling.
I want to add items to the database via the use of 2 textbox but i'm cluesless on how to get the query,
i've been going over several pages tough all seem to fix on MMSql 2005 or on the connection string.
Any help would be greatly apriciated
Greetings
Ben
|
|
|
|
|
Any code that attempts to do this at the moment would be useful to see. It will help us point out where you're going wrong.
In the mean time, I suggest you read this great article here[^], specifically the section about parametrised queries. In short, you take the user's input and create a new MySqlParameter object from that information and perform an INSERT statement.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
My coding for adding has been done,
Tought the removing function still does not , and i'm not sure how to finish the following:
string query = "DELETE FROM facturen WHERE Id = " there should be more here
MySql.Data.MySqlClient.MySqlCommand bQuery = new MySql.Data.MySqlClient.MySqlCommand(query, connection);
bQuery.ExecuteNonQuery();
connection.Close();
|
|
|
|
|
Hello everyone,
If all the Finalizer methods of all the used classes in a thread are programmed properly, means native resource are released in Finalizer (e.g. implementing Dispose pattern), no matter how the thread is terminated (normally, by Interrupt or by Abort or by Exit or ...), there should not be any resource leak, right?
thanks in advance,
George
|
|
|
|
|
|
Any more description please?
regards,
George
|
|
|
|