Click here to Skip to main content
15,901,284 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili6-May-09 4:09
mentorGiorgi Dalakishvili6-May-09 4:09 
GeneralRe: Application gives an error only if it's started at system startup Pin
Luis_codeProject6-May-09 4:37
Luis_codeProject6-May-09 4:37 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili6-May-09 19:58
mentorGiorgi Dalakishvili6-May-09 19:58 
GeneralRe: Application gives an error only if it's started at system startup Pin
Luis_codeProject7-May-09 1:33
Luis_codeProject7-May-09 1:33 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili7-May-09 2:28
mentorGiorgi Dalakishvili7-May-09 2:28 
QuestionChanging the middle/wheel click to click-n-drag Pin
f.eskafi5-May-09 17:54
f.eskafi5-May-09 17:54 
AnswerRe: Changing the middle/wheel click to click-n-drag Pin
LCARS x3225-May-09 0:06
LCARS x3225-May-09 0:06 
QuestionSuppress reading data after DataBinding.WriteValue() Pin
ezeew4-May-09 21:27
ezeew4-May-09 21:27 
Hi All.

I have bound the Text property of several Textboxes to the properties of an Object with DataSourceUpdateMode.Never.

A foreach loop cycles through all textboxes and the DataBindings.WriteValue() function is called for each modified textbox to give the changes back to the object (which stores them in a database):
foreach (TextBox ctrl in gbCAddress.Controls)
{
   if (ctrl.Modified)
   {
      ctrl.DataBindings["Text"].WriteValue();
      ctrl.Modified = false;
   }
}

This works fine so far, but after calling WriteValue(), all other DataBindings reload the data from the object, which overwrites the changes made to the other textboxes (probably because the Datasource changed ?).

Example:
textbox1 and textbox2 were modified.
The loop calls the WriteValue() function for textbox1
All Bindings reload their data - textbox2.Text is now the old value
The loop calls the WriteValue() function for textbox2

Can I suppress this reloading somehow ? I cannot see why everything is reloaded after one field changes...

Help ! Smile | :)
AnswerRe: Suppress reading data after DataBinding.WriteValue() Pin
Danny.net4-May-09 23:27
Danny.net4-May-09 23:27 
QuestionHOW CAN I COUNT TRANSACTION TIME AND NUMBER OF TRANSACTION?? Pin
TARAK NATH ROY4-May-09 19:23
TARAK NATH ROY4-May-09 19:23 
AnswerRe: HOW CAN I COUNT TRANSACTION TIME AND NUMBER OF TRANSACTION?? Pin
Not Active5-May-09 1:46
mentorNot Active5-May-09 1:46 
JokeRe: HOW CAN I COUNT TRANSACTION TIME AND NUMBER OF TRANSACTION?? Pin
Vasudevan Deepak Kumar7-May-09 21:10
Vasudevan Deepak Kumar7-May-09 21:10 
AnswerRe: HOW CAN I COUNT TRANSACTION TIME AND NUMBER OF TRANSACTION?? Pin
Dave Kreskowiak5-May-09 4:53
mveDave Kreskowiak5-May-09 4:53 
QuestionResXFileCodeGenerator file types Pin
Grimolfr4-May-09 3:31
Grimolfr4-May-09 3:31 
QuestionHOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
TARAK NATH ROY4-May-09 3:00
TARAK NATH ROY4-May-09 3:00 
AnswerRe: HOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
Not Active4-May-09 3:20
mentorNot Active4-May-09 3:20 
AnswerRe: HOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
Dave Kreskowiak4-May-09 4:22
mveDave Kreskowiak4-May-09 4:22 
AnswerRe: HOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
led mike4-May-09 4:43
led mike4-May-09 4:43 
GeneralRe: HOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
Mark Churchill4-May-09 19:38
Mark Churchill4-May-09 19:38 
GeneralRe: HOW CAN I COUNT A TRANSACTION FROM XML DOM??? Pin
Guffa6-May-09 4:32
Guffa6-May-09 4:32 
QuestionNeed help with Insert, Delete and update commands in VB.NET Pin
davos14-May-09 2:06
davos14-May-09 2:06 
AnswerRe: Need help with Insert, Delete and update commands in VB.NET Pin
Not Active4-May-09 2:34
mentorNot Active4-May-09 2:34 
QuestionRe: Need help with Insert, Delete and update commands in VB.NET Pin
davos14-May-09 2:38
davos14-May-09 2:38 
AnswerRe: Need help with Insert, Delete and update commands in VB.NET Pin
Not Active4-May-09 2:50
mentorNot Active4-May-09 2:50 
QuestionRe: Need help with Insert, Delete and update commands in VB.NET Pin
davos14-May-09 2:56
davos14-May-09 2:56 

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.