Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multi-version compilation Pin
joputaidilico6-Mar-07 23:25
joputaidilico6-Mar-07 23:25 
QuestionHow to convert DRM protected audio files to unprotected audio files Pin
Balakrish4-Mar-07 22:12
Balakrish4-Mar-07 22:12 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
stancrm5-Mar-07 2:28
stancrm5-Mar-07 2:28 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
m@u5-Mar-07 2:50
m@u5-Mar-07 2:50 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
Vega025-Mar-07 13:19
Vega025-Mar-07 13:19 
Questionwin ce project Pin
gskumar1114-Mar-07 21:59
gskumar1114-Mar-07 21:59 
QuestionHelp, how to run C# Pin
Member 38867704-Mar-07 21:47
Member 38867704-Mar-07 21:47 
AnswerRe: Help, how to run C# Pin
stancrm4-Mar-07 21:59
stancrm4-Mar-07 21:59 
QuestionWPF vs. WinForms: Menu merging. Pin
__alex4-Mar-07 21:43
__alex4-Mar-07 21:43 
QuestionMulti-treading Pin
dotnethunk4-Mar-07 21:34
dotnethunk4-Mar-07 21:34 
AnswerRe: Multi-treading Pin
pbraun5-Mar-07 8:05
pbraun5-Mar-07 8:05 
QuestionDrag And Drop Pin
shamsteady4-Mar-07 21:30
shamsteady4-Mar-07 21:30 
QuestionURGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 21:03
Jassim Rahma4-Mar-07 21:03 
AnswerRe: URGENT PLZ: how to print an invoice or receipt? Pin
stancrm4-Mar-07 21:57
stancrm4-Mar-07 21:57 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma4-Mar-07 22:40
Jassim Rahma4-Mar-07 22:40 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 2:10
mvePete O'Hanlon5-Mar-07 2:10 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Jassim Rahma5-Mar-07 9:15
Jassim Rahma5-Mar-07 9:15 
GeneralRe: URGENT PLZ: how to print an invoice or receipt? Pin
Pete O'Hanlon5-Mar-07 22:16
mvePete O'Hanlon5-Mar-07 22:16 
QuestionProblem painting. Please help!!! Pin
Iker Llanos4-Mar-07 20:38
Iker Llanos4-Mar-07 20:38 
QuestionHow to Create New File In C#.net Pin
jaganil4-Mar-07 20:33
jaganil4-Mar-07 20:33 
AnswerRe: How to Create New File In C#.net Pin
VirtualVoid.NET4-Mar-07 21:22
VirtualVoid.NET4-Mar-07 21:22 
QuestionData in the grid is not refreshing with out break points Pin
Najeed4-Mar-07 20:11
Najeed4-Mar-07 20:11 
QuestionThe report has no tables. Pin
waleed994-Mar-07 19:56
waleed994-Mar-07 19:56 
Questionhow to send a delegate to a fuction with a parameter? Pin
Hussam Fattahi4-Mar-07 19:43
Hussam Fattahi4-Mar-07 19:43 
I don't know if the above question is correct, my english it's not very good.

however, i'm trying to make a safe thread call to a form :
I have declared a chatForms array with name (chatsAvailabel), so when i want to show
one of them i call the fuction ShowForm with a parameter that specify the index of the
form in the array.

delegate void ShowFormCallback(int index);


private void ShowForm(int index)
        {
            if (this.chatsAvailabe[index].InvokeRequired)
            {
                ShowFormCallback tmp = new ShowFormCallback(ShowForm(index));  //error here
                this.chatsAvailabe[index].Invoke(tmp);
            }
            else
                this.chatsAvailabe[index].Show();
        }



but the problem occures when the InvokeRequired is true in if bolck, i must declare an
instance from the ShowFormCallback delegate to use with invoke, but how could i send
parmaeter index again along with this delegate instance.

thanks in advance
AnswerRe: how to send a delegate to a fuction with a parameter? Pin
VirtualVoid.NET4-Mar-07 21:26
VirtualVoid.NET4-Mar-07 21:26 

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.