Click here to Skip to main content
15,925,528 members
Home / Discussions / C#
   

C#

 
GeneralRe: passing by reference v.s. passing by value Pin
N a v a n e e t h2-Oct-08 16:50
N a v a n e e t h2-Oct-08 16:50 
GeneralRe: passing by reference v.s. passing by value Pin
George_George3-Oct-08 1:21
George_George3-Oct-08 1:21 
GeneralRe: passing by reference v.s. passing by value Pin
George_George30-Sep-08 0:01
George_George30-Sep-08 0:01 
GeneralRe: passing by reference v.s. passing by value Pin
George_George30-Sep-08 0:08
George_George30-Sep-08 0:08 
QuestionWS-Addressing for routing Pin
George_George27-Sep-08 23:06
George_George27-Sep-08 23:06 
QuestionQuestion on threads Pin
Dewald27-Sep-08 22:06
Dewald27-Sep-08 22:06 
AnswerRe: Question on threads Pin
Nicholas Butler27-Sep-08 23:34
sitebuilderNicholas Butler27-Sep-08 23:34 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 0:32
Dewald28-Sep-08 0:32 
Aha, I think you've touched exactly on my problem. I've been adding the PictureBoxes from the worker thread. At first I had exception complaining about it being done from a different thread than the one the Panel was created on so I added code to make it thread safe as per this example on MSDN[^] (looking at the SetText function). Is that incorrect then?

I don't think its the calculating of size and position that really takes up time but rather the instantiating of new PictureBoxes and then the UI work of actually adding them to the Panel. I don't mind it taking a while to add the pictures to the panel, I just don't want the main form to have to wait for it all to finish before it can start accepting button clicks again.

I'll look into this suggestion of using a queue. I think that might just be the first step towards a real sollution, thanks. That said, any further advice would be appreciated. Wink | ;)
GeneralRe: Question on threads Pin
Nicholas Butler28-Sep-08 1:34
sitebuilderNicholas Butler28-Sep-08 1:34 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 3:57
Dewald28-Sep-08 3:57 
GeneralRe: Question on threads Pin
N a v a n e e t h28-Sep-08 8:01
N a v a n e e t h28-Sep-08 8:01 
GeneralRe: Question on threads Pin
Dewald28-Sep-08 10:15
Dewald28-Sep-08 10:15 
GeneralRe: Question on threads Pin
N a v a n e e t h28-Sep-08 17:17
N a v a n e e t h28-Sep-08 17:17 
GeneralRe: Question on threads Pin
Nicholas Butler29-Sep-08 0:41
sitebuilderNicholas Butler29-Sep-08 0:41 
GeneralRe: Question on threads Pin
Dewald29-Sep-08 1:08
Dewald29-Sep-08 1:08 
QuestionBianrySearch for IList<t></t> Pin
peterchen27-Sep-08 20:55
peterchen27-Sep-08 20:55 
AnswerRe: BianrySearch for IList Pin
N a v a n e e t h28-Sep-08 8:18
N a v a n e e t h28-Sep-08 8:18 
AnswerRe: BianrySearch for IList Pin
Lutosław28-Sep-08 11:44
Lutosław28-Sep-08 11:44 
QuestionProblem in showing exact data on reports(reguarding datetimepicker)??????? Pin
g_amol27-Sep-08 19:14
g_amol27-Sep-08 19:14 
Questionrelated path Pin
ahmed mega27-Sep-08 7:40
ahmed mega27-Sep-08 7:40 
AnswerRe: related path Pin
Pedram Behroozi27-Sep-08 8:19
Pedram Behroozi27-Sep-08 8:19 
QuestionPinvoke Pin
Miss_hacker27-Sep-08 3:08
Miss_hacker27-Sep-08 3:08 
AnswerRe: Pinvoke Pin
Giorgi Dalakishvili27-Sep-08 4:37
mentorGiorgi Dalakishvili27-Sep-08 4:37 
GeneralRe: Pinvoke Pin
Miss_hacker27-Sep-08 6:55
Miss_hacker27-Sep-08 6:55 
GeneralRe: Pinvoke Pin
DaveyM6927-Sep-08 7:15
professionalDaveyM6927-Sep-08 7:15 

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.