Click here to Skip to main content
15,910,303 members
Home / Discussions / C#
   

C#

 
AnswerRe: I want to use SQL Server2000 DTS Import/Export Wizard functionality from C# application Pin
thejakes3-Apr-06 3:34
thejakes3-Apr-06 3:34 
QuestionHow to retieve share point data fron a wondows application (c#) Pin
K ANvar sadath2-Apr-06 20:51
K ANvar sadath2-Apr-06 20:51 
GeneralRe: How to retieve share point data fron a wondows application (c#) Pin
Guffa2-Apr-06 22:30
Guffa2-Apr-06 22:30 
Questionhow can we retrieve and send messages on a queue using transaction method Pin
indiaone2-Apr-06 19:25
indiaone2-Apr-06 19:25 
AnswerRe: how can we retrieve and send messages on a queue using transaction method Pin
AB77712-Apr-06 21:04
AB77712-Apr-06 21:04 
GeneralRe: how can we retrieve and send messages on a queue using transaction method Pin
indiaone2-Apr-06 21:35
indiaone2-Apr-06 21:35 
GeneralRe: how can we retrieve and send messages on a queue using transaction method Pin
AB77712-Apr-06 22:07
AB77712-Apr-06 22:07 
QuestionC# and Access Database Pin
thejakes2-Apr-06 19:24
thejakes2-Apr-06 19:24 
I've created a C# application with an Access DB on the back end. The problem I'm having is it seems like the code is executing faster than the DB can accept changes. I've got an "Add New" form that the user enters data in to add a new dealer. When the user hits the Save button, I insert the new row and close the "Add New Dealer" form. I then reload my Dealer combo box on the main form from the Dealer table. However, the code seems to be reloading the the combo before the new row makes it into the table. My first thought is to Save the row, then pause the code execution for a second or two to allow the table to catch up. Then continue the code execution and reload my combo. If there's a better solution to the problem (other than getting rid of the Access DB), I'm all ears. But at the very least, I'm looking for help on how to pause the execution of the code in for a specifict interval ("Pause(2)" function below) between the "Insert row" function and the "Reload combo" function. The pseudocode is below. Thanks in advance for any help.

//On main form
private void AddNew()
{
frmAddNew.ShowDialog();//show AddNew dialog
Pause(2);//Pause code for 2 seconds
ReloadCombo();//reload Dealer combo including newly added dealer
}

//On AddNew dialog box
private void Save()
{
CollectData();//Collect user entered data from Dialog
InsertRow();//insert new row into Dealer table
this.close;//close add new form and return control to main form
}


Jake
AnswerRe: C# and Access Database Pin
Guffa2-Apr-06 20:36
Guffa2-Apr-06 20:36 
GeneralRe: C# and Access Database Pin
thejakes3-Apr-06 3:20
thejakes3-Apr-06 3:20 
AnswerRe: C# and Access Database Pin
MohammadAmiry3-Apr-06 1:49
MohammadAmiry3-Apr-06 1:49 
AnswerRe: C# and Access Database Pin
Aaron Dilliard4-Apr-06 11:43
Aaron Dilliard4-Apr-06 11:43 
GeneralRe: C# and Access Database Pin
thejakes4-Apr-06 16:55
thejakes4-Apr-06 16:55 
QuestionHow to get IIS application pool identity Pin
Johny Ng2-Apr-06 19:01
Johny Ng2-Apr-06 19:01 
AnswerRe: How to get IIS application pool identity Pin
Vasudevan Deepak Kumar2-Apr-06 21:46
Vasudevan Deepak Kumar2-Apr-06 21:46 
Questioncrystal report: a group per a page Pin
shinshit2-Apr-06 18:17
shinshit2-Apr-06 18:17 
AnswerRe: crystal report: a group per a page Pin
Aaron Dilliard4-Apr-06 11:45
Aaron Dilliard4-Apr-06 11:45 
QuestionHide Vertical Scroll Bar of a ListBox Pin
o0xtian0o2-Apr-06 18:04
o0xtian0o2-Apr-06 18:04 
AnswerRe: Hide Vertical Scroll Bar of a ListBox Pin
Aaron Dilliard4-Apr-06 11:39
Aaron Dilliard4-Apr-06 11:39 
GeneralRe: Hide Vertical Scroll Bar of a ListBox Pin
o0xtian0o4-Apr-06 13:03
o0xtian0o4-Apr-06 13:03 
QuestionHow to remove Panel Border? Pin
cnich232-Apr-06 11:24
cnich232-Apr-06 11:24 
GeneralRe: How to remove Panel Border? Pin
Guffa2-Apr-06 12:13
Guffa2-Apr-06 12:13 
GeneralRe: How to remove Panel Border? Pin
Mitchell D. Geere2-Apr-06 13:30
Mitchell D. Geere2-Apr-06 13:30 
GeneralRe: How to remove Panel Border? Pin
cnich233-Apr-06 6:57
cnich233-Apr-06 6:57 
GeneralRe: How to remove Panel Border? Pin
cnich233-Apr-06 9:01
cnich233-Apr-06 9:01 

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.