Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# custom controls

Status
Not open for further replies.

sodiumpaul

Programmer
Jun 30, 2007
17
GB
I've created a collection of customer panels. Each panel plays different media types (video, flash Scrolling Banners etc). The Main Form starts each of the panels as a user selects them. They all play happily together. However, when a panel reloads media from disc or, in the case of the RSS scrolling banner, from the Net, it causes all of the other panels to stop playing/scrolling until it has finished loading the media/feed. In the case of the banner I've put the RSS fetch on its own thread, to no avail. Do I need to start each component on its own thread? If so, how is this achieved?

Many thanks in advance
 
Forgot to add that each panel can take events from the Main Form. For example: resizing, load new feed/media etc.
 
Before you play the media, you need to load the media. Loading the media involves only the data side of things and nothing to do with the display. (GUI vs Data)

So you can spawn a thread to do the loading of clips/feeds and then notify the main thread when it has finished loading.

The MS guys have made it "easier" to do this using the BackgroundWorker thread. Try some googling for this class as it is not hard to implement.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top