Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
QuestionMerchant Connect - Webservice anyone? Pin
sameerhanda31-Oct-08 5:37
sameerhanda31-Oct-08 5:37 
AnswerRe: Merchant Connect - Webservice anyone? Pin
Paul Conrad31-Oct-08 7:34
professionalPaul Conrad31-Oct-08 7:34 
Questionlistbox population Pin
arkiboys31-Oct-08 5:27
arkiboys31-Oct-08 5:27 
AnswerRe: listbox population Pin
Eddy Vluggen31-Oct-08 5:48
professionalEddy Vluggen31-Oct-08 5:48 
GeneralRe: listbox population Pin
Luc Pattyn31-Oct-08 7:14
sitebuilderLuc Pattyn31-Oct-08 7:14 
Questionthreading Pin
arkiboys31-Oct-08 5:25
arkiboys31-Oct-08 5:25 
AnswerRe: threading Pin
Eddy Vluggen31-Oct-08 5:53
professionalEddy Vluggen31-Oct-08 5:53 
AnswerRe: threading Pin
Guffa31-Oct-08 6:48
Guffa31-Oct-08 6:48 
You can only access the controls from the thread that created them, i.e the main thread.

There are basically two ways of doing that:

1. Use Invoke to make the main thread execute the code, just like you do in the AddToListbox method. If you know that you are always doing that from a background thread, you don't have to check the InvikeRequired property, but just invoke the code directly.

2. Put the data in a synchronised variable (use the lock keyword to synchronise both when reading and writing), where the main thread can look for it and put it in the control.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: threading Pin
aalex67531-Oct-08 6:50
aalex67531-Oct-08 6:50 
AnswerRe: threading Pin
Giorgi Dalakishvili31-Oct-08 8:28
mentorGiorgi Dalakishvili31-Oct-08 8:28 
GeneralRe: threading Pin
arkiboys31-Oct-08 9:31
arkiboys31-Oct-08 9:31 
GeneralRe: threading Pin
Giorgi Dalakishvili31-Oct-08 9:43
mentorGiorgi Dalakishvili31-Oct-08 9:43 
QuestionAdvice on what driver to use for multiple Webcam capture Pin
Franko197331-Oct-08 5:20
Franko197331-Oct-08 5:20 
QuestionDetecting when user has changed selection to another row (single selection item grid) Pin
kanchoette31-Oct-08 3:31
kanchoette31-Oct-08 3:31 
AnswerRe: Detecting when user has changed selection to another row (single selection item grid) Pin
Ashfield31-Oct-08 4:53
Ashfield31-Oct-08 4:53 
GeneralRe: Detecting when user has changed selection to another row (single selection item grid) Pin
led mike31-Oct-08 4:55
led mike31-Oct-08 4:55 
GeneralRe: Detecting when user has changed selection to another row (single selection item grid) Pin
Ashfield31-Oct-08 5:55
Ashfield31-Oct-08 5:55 
QuestionHow I Change Menu Css on page load Event OR Runtime Pin
IshtiaqueJ31-Oct-08 2:30
IshtiaqueJ31-Oct-08 2:30 
AnswerRe: How I Change Menu Css on page load Event OR Runtime Pin
Krazy Programmer31-Oct-08 2:53
Krazy Programmer31-Oct-08 2:53 
AnswerRe: How I Change Menu Css on page load Event OR Runtime Pin
leppie31-Oct-08 2:57
leppie31-Oct-08 2:57 
GeneralServiceController remote access, impersonation Pin
laserbaronen31-Oct-08 2:20
laserbaronen31-Oct-08 2:20 
QuestionDictionary size issue Pin
George_George31-Oct-08 2:16
George_George31-Oct-08 2:16 
AnswerRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 2:25
sitebuilderLuc Pattyn31-Oct-08 2:25 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 2:32
George_George31-Oct-08 2:32 
GeneralRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 2:44
sitebuilderLuc Pattyn31-Oct-08 2:44 

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.