Threading with Form Invoke

You can talk about VB programming here

Threading with Form Invoke

Postby NVYE » Thu Mar 26, 2009 7:41 pm


I've been trying to create an instance I can pass a variable through different threads. This variable (can be an object) is singleton, that means if a thread changes its value then it must be the same for all threads.

I would like the form that's executing the thread be able to get the variable as well.

Design:

UI -> Service
Service acknowledges the UI params then
Service sends response messages to the UI.

Just wondering is there a way to achieve it, or anyone here has any experience with it plesase share? Thanks!
Add-on Bots for educational and amusement purposes:
http://www.vnfox.com

Website:
http://www.asktechguy.com
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 234
Joined: Fri Jun 10, 2005 11:29 pm

Re: Threading with Form Invoke

Postby Chike » Fri Mar 27, 2009 10:30 am

Quite difficult what your intenstions are.

If acknowledging the parameters and sending a reply can be made with forum callbacks than just pass the forum and call it's callbacks.
I think autopilot once made a tutorial about calling a form from another thread.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: Threading with Form Invoke

Postby NVYE » Fri Mar 27, 2009 5:05 pm

yeah ... it is ... I got myself confused through these threads. It's hard to pass reference through memory.
Add-on Bots for educational and amusement purposes:
http://www.vnfox.com

Website:
http://www.asktechguy.com
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 234
Joined: Fri Jun 10, 2005 11:29 pm

Re: Threading with Form Invoke

Postby NVYE » Tue Mar 31, 2009 12:56 pm

I just solved my own question ... YAHOOO !!!! finally !!
Add-on Bots for educational and amusement purposes:
http://www.vnfox.com

Website:
http://www.asktechguy.com
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 234
Joined: Fri Jun 10, 2005 11:29 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest