Click here to Skip to main content
15,914,408 members
Home / Discussions / C#
   

C#

 
AnswerRe: Difference between Thread, ThreadPool & BackgroundWorker c# Pin
Abhinav S19-May-13 7:03
Abhinav S19-May-13 7:03 
QuestionMinidumps. Pin
Septimus Hedgehog18-May-13 8:08
Septimus Hedgehog18-May-13 8:08 
AnswerRe: Minidumps. Pin
Eddy Vluggen18-May-13 8:44
professionalEddy Vluggen18-May-13 8:44 
GeneralRe: Minidumps. Pin
Septimus Hedgehog18-May-13 9:14
Septimus Hedgehog18-May-13 9:14 
QuestionSome Basic Help About A Modification In a Script! Pin
Jesús Frías18-May-13 6:17
Jesús Frías18-May-13 6:17 
AnswerRe: Some Basic Help About A Modification In a Script! Pin
Dave Kreskowiak18-May-13 7:53
mveDave Kreskowiak18-May-13 7:53 
AnswerRe: Some Basic Help About A Modification In a Script! Pin
Calvijn18-May-13 10:55
Calvijn18-May-13 10:55 
Questionc@# Pin
MKS Khalid18-May-13 5:56
MKS Khalid18-May-13 5:56 
AnswerRe: c@# Pin
OriginalGriff18-May-13 6:00
mveOriginalGriff18-May-13 6:00 
Questionc# Thumbnail Viewer Pin
Dinesh Salunke17-May-13 18:39
Dinesh Salunke17-May-13 18:39 
AnswerRe: c# Thumbnail Viewer Pin
BillWoodruff17-May-13 20:42
professionalBillWoodruff17-May-13 20:42 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke18-May-13 5:44
Dinesh Salunke18-May-13 5:44 
GeneralRe: c# Thumbnail Viewer Pin
Dave Kreskowiak18-May-13 7:46
mveDave Kreskowiak18-May-13 7:46 
GeneralRe: c# Thumbnail Viewer Pin
BillWoodruff19-May-13 2:05
professionalBillWoodruff19-May-13 2:05 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke19-May-13 4:16
Dinesh Salunke19-May-13 4:16 
QuestionFlashing form Pin
PozzaVecia17-May-13 12:28
PozzaVecia17-May-13 12:28 
AnswerRe: Flashing form Pin
Dave Kreskowiak17-May-13 17:34
mveDave Kreskowiak17-May-13 17:34 
AnswerRe: Flashing form Pin
BillWoodruff17-May-13 20:17
professionalBillWoodruff17-May-13 20:17 
GeneralRe: Flashing form Pin
PozzaVecia17-May-13 22:01
PozzaVecia17-May-13 22:01 
QuestionTimestamp Value in SQLServer Pin
abhi_here17-May-13 8:13
abhi_here17-May-13 8:13 
AnswerRe: Timestamp Value in SQLServer Pin
PIEBALDconsult17-May-13 8:43
mvePIEBALDconsult17-May-13 8:43 
AnswerRe: Timestamp Value in SQLServer Pin
abhi_here29-May-13 4:34
abhi_here29-May-13 4:34 
AnswerRe: Timestamp Value in SQLServer Pin
jschell17-May-13 10:32
jschell17-May-13 10:32 
GeneralRe: Timestamp Value in SQLServer Pin
PIEBALDconsult17-May-13 11:04
mvePIEBALDconsult17-May-13 11:04 
QuestionDifferent behaviour from button in MDI parent and button in child form Pin
FRotondo17-May-13 4:09
FRotondo17-May-13 4:09 
Hi to all.
I have a strange behaviour in a MDI project. I created a toolstrip with buttons in MDI parent for common operations in all children forms (New, Save and Delete).
In a child form, I have a DataGridView with a CheckBoxColumn and a TextBoxColumn with a list of options to choose by user. If i check some checkbox and I press the Save button in the toolstrip, I can't save any data: all the checkbox returns false value. But if i put a button in the child form and call the same void, all work very well.
Someone can answer why?

Here the code for button in MDI parent:
C#
private void tsbtnSave_Click(object sender, EventArgs e)
{
  if (this.ActiveMdiChild is Basic.AnalyzersCylinders) ((Basic.AnalyzersCylinders)this.ActiveMdiChild).Save();
}



Here the code to read the results:
C#
public void Save()
{
  foreach (DataGridViewRow dgRow in dgvAnalyzers.Rows)
  {
    if (dgRow.Cells["CheckedItem"].Value != null)
    {
      if ((bool)dgRow.Cells["CheckedItem"].Value)
      {
        // save data to database;
      }
      else
      {
        // delete data from database;
      }
    }
  }
}


And, obviously, the code for the button in Child form call the same Save() void.

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.