Originally posted by ASB
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: .net Ipc Vs2005
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on ".net Ipc Vs2005"
Collapse
-
-
Originally posted by voodooflux View PostFrom what you've said (and apologies if I've misunderstood) I still think Control.Invoke is what you want here - although you may wish to hide the implementation from your developer by wrapping the functionality in something more "friendly". Assuming I have understood correctly, Control.Invoke is provided for the exact scenario you describe.
Leave a comment:
-
Originally posted by ASB View PostHmm, I think that should pretty much do it. I need to review it and wrap it all up in a class I provide. Only issue I have is trying to hide it from my new developer as much as possible.
Have a look in the comments as there is a Generics solution suggested that reduces the coding.
Leave a comment:
-
Originally posted by DimPrawn View Post
Leave a comment:
-
Originally posted by ASB View PostNaturally he can do that, but it's a bit of a pain for him to do it - though he may well have to [though it will take a fair bit of explaining the techniques he's going to need to use]. I think http://msdn.microsoft.com/en-us/libr...oncontext.aspx might help, but I've got a fair bit of reading up to do.
I could write a control that exposes the methods I want my thread to call and this queues them and dequeues them on a (form) timer or similar.
Basically al I want to end up with is in my thread SomeObject.PostMessage(object) and then in his UI Event MessageReceived(someData as object).
It seems as though there should be some control available which will help me with this, but stuffed if I can find one....
Leave a comment:
-
-
Originally posted by voodooflux View PostHave you tried Control.Invoke?
I could write a control that exposes the methods I want my thread to call and this queues them and dequeues them on a (form) timer or similar.
Basically al I want to end up with is in my thread SomeObject.PostMessage(object) and then in his UI Event MessageReceived(someData as object).
It seems as though there should be some control available which will help me with this, but stuffed if I can find one....
Leave a comment:
-
.net Ipc Vs2005
To make life easier for one my developers I am looking for a windows control which I can use for IPC to the UI thread.
All I want to do is pass an object from one thread and have an event fire in a UI thread. It's making my head hurt thinking how I can achieve this. Any suggestions ?
It's just a load easier for him to drop a control on his form and handle the events rather than have to worry about updating the UI from different threads.
Cheers.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Dec 24 09:51
- Reeves sets Spring Statement 2025 for March 26th Dec 23 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
- Chartered Accountants with MarchMutual Dec 19 15:05
- Chartered Accountants with March Mutual Dec 19 15:05
- Chartered Accountants Dec 19 15:05
- Unfairly barred from contracting? Petrofac just paid the price Dec 19 09:43
- An IR35 case law look back: contractor must-knows for 2025-26 Dec 18 09:30
- A contractor’s Autumn Budget financial review Dec 17 10:59
Leave a comment: