Click here to Skip to main content
15,886,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:40
professionalJustincc31-Jul-07 10:40 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:57
professionalJustincc31-Jul-07 10:57 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Judah Gabriel Himango31-Jul-07 13:15
sponsorJudah Gabriel Himango31-Jul-07 13:15 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Luc Pattyn31-Jul-07 7:53
sitebuilderLuc Pattyn31-Jul-07 7:53 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:30
PhilDanger31-Jul-07 7:30 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:36
professionalJustincc31-Jul-07 7:36 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:39
PhilDanger31-Jul-07 7:39 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
Judah Gabriel Himango31-Jul-07 10:02
sponsorJudah Gabriel Himango31-Jul-07 10:02 
Try changing the LoadCompanies method to this instead:

public void LoadCompanies(DoWorkEventArgs e)
{
  PROSOCO.Library.Companies.Criteria criteria = PROSOCO.Library.Companies.Criteria.GetCriteria();

  BindingSource src = new BindingSource();

  PROSOCO.Library.Companies.Nodes nodes = PROSOCO.Library.Companies.Nodes.GetNodes(criteria.NodeCriteria());

  src.DataSource = nodes;

  e.Result = src;
}


Then change your RunWorkerCompleted handler to look like this:

private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{ 
   BindingSource src = (BindingSource)e.Result;
   pnlNavigation.ContentTree.ParentMember = "ParentId";
   pnlNavigation.ContentTree.ValueMember = "Id";
   pnlNavigation.ContentTree.DisplayMember = "Name";
   pnlNavigation.ContentTree.PrefixMember = "CustomerNumber";
   pnlNavigation.ContentTree.PostfixMember = "CityState";
   pnlNavigation.ContentTree.DataSource = src;

   ShowLoadingAnimation(false);

    _activeModule = "Companies";
}



Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Orthodox Jews are persecuting Messianic Jews in Israel (video)
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:20
professionalJustincc31-Jul-07 10:20 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 10:23
PhilDanger31-Jul-07 10:23 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:32
professionalJustincc31-Jul-07 10:32 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Judah Gabriel Himango31-Jul-07 13:13
sponsorJudah Gabriel Himango31-Jul-07 13:13 
QuestionBeginner Need Help Pin
patkan31-Jul-07 7:03
patkan31-Jul-07 7:03 
AnswerRe: Beginner Need Help Pin
Dave Kreskowiak31-Jul-07 7:29
mveDave Kreskowiak31-Jul-07 7:29 
GeneralRe: Beginner Need Help Pin
patkan1-Aug-07 0:11
patkan1-Aug-07 0:11 
GeneralRe: Beginner Need Help Pin
Dave Kreskowiak1-Aug-07 11:59
mveDave Kreskowiak1-Aug-07 11:59 
AnswerRe: Beginner Need Help Pin
PIEBALDconsult31-Jul-07 11:25
mvePIEBALDconsult31-Jul-07 11:25 
GeneralRe: Beginner Need Help Pin
Paul Conrad31-Jul-07 17:47
professionalPaul Conrad31-Jul-07 17:47 
GeneralRe: Beginner Need Help Pin
patkan1-Aug-07 0:38
patkan1-Aug-07 0:38 
GeneralRe: Beginner Need Help Pin
patkan1-Aug-07 0:33
patkan1-Aug-07 0:33 
GeneralRe: Beginner Need Help Pin
PIEBALDconsult1-Aug-07 13:51
mvePIEBALDconsult1-Aug-07 13:51 
QuestionShadowing and Overriding Pin
sivakumaran_in31-Jul-07 7:02
sivakumaran_in31-Jul-07 7:02 
AnswerRe: Shadowing and Overriding Pin
WillemM31-Jul-07 8:00
WillemM31-Jul-07 8:00 
QuestionGlobal Assembly Cache & Versioning [modified] Pin
MrEyes31-Jul-07 6:33
MrEyes31-Jul-07 6:33 
AnswerRe: Global Assembly Cache & Versioning Pin
WillemM31-Jul-07 8:08
WillemM31-Jul-07 8:08 

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.