Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: glossary Pin
Christian Graus22-Jul-07 20:52
protectorChristian Graus22-Jul-07 20:52 
Questiondropdown list problem Pin
srinivassam22-Jul-07 20:26
srinivassam22-Jul-07 20:26 
AnswerRe: dropdown list problem Pin
Christian Graus22-Jul-07 20:37
protectorChristian Graus22-Jul-07 20:37 
QuestionHow to disable right click menu/ context menu of datagrid Pin
Software_Guy_12322-Jul-07 20:03
Software_Guy_12322-Jul-07 20:03 
AnswerRe: How to disable right click menu/ context menu of datagrid Pin
Martin#22-Jul-07 20:16
Martin#22-Jul-07 20:16 
GeneralRe: How to disable right click menu/ context menu of datagrid Pin
Software_Guy_12322-Jul-07 20:45
Software_Guy_12322-Jul-07 20:45 
AnswerRe: How to disable right click menu/ context menu of datagrid Pin
Software_Guy_12330-Jul-07 19:54
Software_Guy_12330-Jul-07 19:54 
QuestionMutlithreading:-Playing Mutiple Video files CPU 100% Pin
leoiser22-Jul-07 19:51
leoiser22-Jul-07 19:51 
Hi,
I am doing an application that is using webservice & displaying data.So every 30 seconds the application will call webservice, I use system.Threading.Timer it is working fine.CPU usage is very less (maximum 30).I got an additional task to play video files.So it will be maximum 8 video in a screen (video files located in local system) & very 30 seconds according to data from ws video file will change.I write the code like this.In timer callback event I am Executing 2 functions

[Code]
System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(GetNextPage), state); // going 2 next page, in a page displaying 8 rows
System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(GetNextVideo), state); // displaying corresponding video


//in delegate of video I put the below code

wmp = (AxWMPLib.AxWindowsMediaPlayer)Arrctrl[0]; //Find the control bcos adding at runtime
thread = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(PlayCurrentWMP)); //PlayCurrentWMP is assign the URL & play
thread.Priority = System.Threading.ThreadPriority.Lowest;
thread.IsBackground = true;
thread.Start(wmp);



[/Code]

Please advice what is wrong in my coding. Thanks in advance
Confused | :confused:
AnswerRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
Luc Pattyn23-Jul-07 2:25
sitebuilderLuc Pattyn23-Jul-07 2:25 
GeneralRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
leoiser23-Jul-07 2:55
leoiser23-Jul-07 2:55 
GeneralRe: Mutlithreading:-Playing Mutiple Video files CPU 100% Pin
Luc Pattyn23-Jul-07 3:10
sitebuilderLuc Pattyn23-Jul-07 3:10 
QuestionHow to start C# application along with windows. Pin
Janu_M22-Jul-07 19:22
Janu_M22-Jul-07 19:22 
AnswerRe: How to start C# application along with windows. Pin
leoiser22-Jul-07 19:56
leoiser22-Jul-07 19:56 
GeneralRe: How to start C# application along with windows. Pin
Janu_M22-Jul-07 21:56
Janu_M22-Jul-07 21:56 
AnswerRe: How to start C# application along with windows. Pin
Ravi Bhavnani22-Jul-07 20:56
professionalRavi Bhavnani22-Jul-07 20:56 
GeneralRe: How to start C# application along with windows. Pin
Janu_M22-Jul-07 21:56
Janu_M22-Jul-07 21:56 
QuestionQuick Listbox Question Pin
Michael Fritzius22-Jul-07 18:55
professionalMichael Fritzius22-Jul-07 18:55 
AnswerRe: Quick Listbox Question Pin
Christian Graus22-Jul-07 18:58
protectorChristian Graus22-Jul-07 18:58 
AnswerRe: Quick Listbox Question Pin
Paul Conrad22-Jul-07 19:28
professionalPaul Conrad22-Jul-07 19:28 
AnswerRe: Quick Listbox Question Pin
Luc Pattyn23-Jul-07 2:30
sitebuilderLuc Pattyn23-Jul-07 2:30 
AnswerRe: Quick Listbox Question Pin
Michael Fritzius23-Jul-07 5:19
professionalMichael Fritzius23-Jul-07 5:19 
QuestionVariable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 18:45
Muhammad Nauman Yousuf22-Jul-07 18:45 
AnswerRe: Variable Declared Pin
Guffa22-Jul-07 18:54
Guffa22-Jul-07 18:54 
GeneralRe: Variable Declared Pin
Muhammad Nauman Yousuf22-Jul-07 20:23
Muhammad Nauman Yousuf22-Jul-07 20:23 
GeneralRe: Variable Declared Pin
Christian Graus22-Jul-07 20:56
protectorChristian Graus22-Jul-07 20:56 

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.