Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2005, 03:13 PM
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default message passing between threads in c#

Hi all,

I have a c# application. I got there a Gui thread, that runs a status bar panel, (like MSN messenger), and waits for the user to open any window. I got also another thread that sometimes opens a popup. I got a button on the popup, and when the user clicks there, i want to open some window.

If i listen to the event and open the window, the popup stucks there, till i close the window (cause it runs in the popup thread and not in the GUI thread). I want to open the window in the GUI thread.
How should i do that? Is there a way to excute some function in other thread? or pass a message to the other thread?

by the way, the GUI thread is a regular thread (i made and ran it) so there's no "beginInvoke" method, i just got an instance to the thread.

Thanks alot,
Hisham





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing soap message neerom XSLT 3 November 17th, 2008 07:32 AM
How do use Array with Threads vivekshah C# 1 June 26th, 2006 11:24 AM
generate too may threads mikel79 All Other Wrox Books 0 April 13th, 2006 07:52 AM
Threads Help hybrid_dev C# 0 July 31st, 2003 10:23 AM
Problems with threads. Threads disappearing? DriesNeyrinck VB.NET 0 June 10th, 2003 08:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.