Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
QuestionGeneate XML file from Excel Worksheet----Urgent Help me Pls Pin
winpoorni22-Feb-06 20:15
winpoorni22-Feb-06 20:15 
AnswerRe: Geneate XML file from Excel Worksheet----Urgent Help me Pls Pin
veeru_syd27-Feb-06 12:55
veeru_syd27-Feb-06 12:55 
QuestionHow to set DataGridViewButtonColumn 's Enabled Pin
renmudi22-Feb-06 20:05
renmudi22-Feb-06 20:05 
QuestionPrinting using WMI Pin
raheeli22-Feb-06 20:04
raheeli22-Feb-06 20:04 
QuestionAdd Icon to Menu Item Pin
Praveen_S22-Feb-06 20:04
Praveen_S22-Feb-06 20:04 
QuestionHow to create simple boolean property for usercontrol, so, that it shows in IDE property page? Pin
Oskars22-Feb-06 19:43
Oskars22-Feb-06 19:43 
AnswerRe: How to create simple boolean property for usercontrol, so, that it shows in IDE property page? Pin
Praveen Nayak23-Feb-06 19:49
Praveen Nayak23-Feb-06 19:49 
QuestionRedirecting Std Input, Output and Error Pin
Dribble22-Feb-06 19:34
Dribble22-Feb-06 19:34 
QuestionMySQL vs. SQL Server Pin
Expert Coming22-Feb-06 19:30
Expert Coming22-Feb-06 19:30 
AnswerRe: MySQL vs. SQL Server Pin
emran83422-Feb-06 19:40
emran83422-Feb-06 19:40 
GeneralRe: MySQL vs. SQL Server Pin
Expert Coming22-Feb-06 19:42
Expert Coming22-Feb-06 19:42 
GeneralRe: MySQL vs. SQL Server Pin
emran83422-Feb-06 19:50
emran83422-Feb-06 19:50 
QuestionHow to store images in dll? Pin
Oskars22-Feb-06 19:24
Oskars22-Feb-06 19:24 
AnswerRe: How to store images in dll? Pin
Alomgir Miah22-Feb-06 19:30
Alomgir Miah22-Feb-06 19:30 
GeneralRe: How to store images in dll? Pin
Oskars22-Feb-06 19:36
Oskars22-Feb-06 19:36 
QuestionPanel autoscrollposition hell! Pin
NewbieDude22-Feb-06 19:06
NewbieDude22-Feb-06 19:06 
QuestionMapping of Excel sheet into Access Table by using C# code Pin
vivekdeshpande22-Feb-06 18:46
vivekdeshpande22-Feb-06 18:46 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it22-Feb-06 23:29
Acheive_it22-Feb-06 23:29 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it23-Feb-06 18:01
Acheive_it23-Feb-06 18:01 
QuestionMethod Lock Pin
JacquesDP22-Feb-06 18:41
JacquesDP22-Feb-06 18:41 
I have two classes, one running on a seperate thread. The one class writes to a table in a database and the other reads and writes to the same table in the database.

The class that only writes to the table is on a seperate thread.
The class that reads and writes to the table is on a timer. So every 5seconds it checks a boolean value and if its true it updates a listview.

The problem comes in when both classes tries to access the table at the same time, I get an error that the connection is currently open and busy.

How can I lock the method that loads the data from the table until the one class is finished.

Then the other problem will be. The main idea behind this is that two machines running the same app can use one database. how do I check if the other machine is currently busy on that table?

Any help and ideas will be appreciated.

Thanks in advance
AnswerRe: Method Lock Pin
emran83422-Feb-06 19:25
emran83422-Feb-06 19:25 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 19:33
JacquesDP22-Feb-06 19:33 
GeneralRe: Method Lock Pin
emran83422-Feb-06 19:43
emran83422-Feb-06 19:43 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 20:11
JacquesDP22-Feb-06 20:11 
GeneralRe: Method Lock Pin
J4amieC22-Feb-06 21:34
J4amieC22-Feb-06 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.