Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: silly question about access dba connection Pin
CalvinHobbies16-Jun-11 21:15
CalvinHobbies16-Jun-11 21:15 
GeneralRe: silly question about access dba connection Pin
Blue_Boy16-Jun-11 21:19
Blue_Boy16-Jun-11 21:19 
QuestionHow to not lose focus in the parent form when opening a modeless form Pin
manchukuo16-Jun-11 18:18
manchukuo16-Jun-11 18:18 
AnswerRe: How to not lose focus in the parent form when opening a modeless form Pin
OriginalGriff16-Jun-11 22:33
mveOriginalGriff16-Jun-11 22:33 
GeneralRe: How to not lose focus in the parent form when opening a modeless form Pin
manchukuo17-Jun-11 6:13
manchukuo17-Jun-11 6:13 
QuestionUpdating console textbox from multiple threads Pin
shivamkalra16-Jun-11 14:58
shivamkalra16-Jun-11 14:58 
AnswerRe: Updating console textbox from multiple threads Pin
manchukuo16-Jun-11 18:38
manchukuo16-Jun-11 18:38 
GeneralRe: Updating console textbox from multiple threads Pin
BobJanova16-Jun-11 23:02
BobJanova16-Jun-11 23:02 
The right idea, but it's generally better to have the updater fire events and not be tightly linked in to the UI class. E.g.

class DatabaseUpdater {
 event EventHandler<UpdateEventArgs> Update;

 void ThreadMethod() {
  while(true){ 
   // ... check the db
   if(thereWasAnUpdate && Update != null){
    Update(this, new UpdateEventArgs(updatedTable, key, Value);
    // or whatever you want to be in your UpdateEventArgs
   }
  }
 }
}

class MainForm {
 List<DatabaseUpdater> updaters;
 MainForm(){
  // ...
  foreach(DatabaseUpdater updater in updaters)
   updater.Update += DatabaseUpdated;
 }

 void DatabaseUpdated(object sender, UpdateEventArgs e){
  this.Invoke((MethodInvoker) delegate { myTextBox.Text += e.UpdatedTable + "\n"; });
 }
}

GeneralRe: Updating console textbox from multiple threads Pin
shivamkalra17-Jun-11 10:21
shivamkalra17-Jun-11 10:21 
QuestionHelp with c sharp and powershell exchange commands Pin
turbosupramk316-Jun-11 10:58
turbosupramk316-Jun-11 10:58 
AnswerRe: Help with c sharp and powershell exchange commands Pin
turbosupramk316-Jun-11 11:47
turbosupramk316-Jun-11 11:47 
AnswerRe: Help with c sharp and powershell exchange commands Pin
jschell16-Jun-11 12:07
jschell16-Jun-11 12:07 
GeneralRe: Help with c sharp and powershell exchange commands Pin
turbosupramk316-Jun-11 13:20
turbosupramk316-Jun-11 13:20 
AnswerRe: Help with c sharp and powershell exchange commands Pin
turbosupramk317-Jun-11 7:51
turbosupramk317-Jun-11 7:51 
GeneralRe: Help with c sharp and powershell exchange commands Pin
jschell17-Jun-11 11:40
jschell17-Jun-11 11:40 
GeneralRe: Help with c sharp and powershell exchange commands Pin
turbosupramk317-Jun-11 13:01
turbosupramk317-Jun-11 13:01 
QuestionVoIP with C# on a 64Bit Windows 7 Pin
DJ-Boris16-Jun-11 9:44
DJ-Boris16-Jun-11 9:44 
AnswerRe: VoIP with C# on a 64Bit Windows 7 Pin
BobJanova17-Jun-11 0:21
BobJanova17-Jun-11 0:21 
QuestionFTP Problem Pin
Kevin Marois16-Jun-11 9:07
professionalKevin Marois16-Jun-11 9:07 
AnswerRe: FTP Problem [modified] Pin
Matt Meyer16-Jun-11 10:22
Matt Meyer16-Jun-11 10:22 
GeneralRe: FTP Problem Pin
Kevin Marois16-Jun-11 12:15
professionalKevin Marois16-Jun-11 12:15 
GeneralRe: FTP Problem Pin
Matt Meyer16-Jun-11 13:10
Matt Meyer16-Jun-11 13:10 
GeneralRe: FTP Problem Pin
Kevin Marois16-Jun-11 13:20
professionalKevin Marois16-Jun-11 13:20 
QuestionReverse (2-way) synchronization: DataGridView to Table (Database) Pin
Paladin200016-Jun-11 3:49
Paladin200016-Jun-11 3:49 
GeneralRe: Reverse (2-way) synchronization: DataGridView to Table (Database) Pin
Paladin200016-Jun-11 5:09
Paladin200016-Jun-11 5:09 

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.