Click here to Skip to main content
15,901,368 members
Home / Discussions / C#
   

C#

 
GeneralRe: class c# Pin
tek 200930-Apr-10 8:29
tek 200930-Apr-10 8:29 
GeneralRe: class c# Pin
PIEBALDconsult30-Apr-10 8:44
mvePIEBALDconsult30-Apr-10 8:44 
GeneralRe: class c# Pin
tek 200930-Apr-10 8:53
tek 200930-Apr-10 8:53 
GeneralRe: class c# Pin
PIEBALDconsult30-Apr-10 9:28
mvePIEBALDconsult30-Apr-10 9:28 
AnswerRe: class c# Pin
Peace ON30-Apr-10 19:42
Peace ON30-Apr-10 19:42 
QuestionIssue with opening multiple form using delegate.BeginInvoke()...new form get hanged...Plz help Pin
Chintan.Desai30-Apr-10 3:16
Chintan.Desai30-Apr-10 3:16 
AnswerRe: Issue with opening multiple form using delegate.BeginInvoke()...new form get hanged...Plz help Pin
Ian Shlasko30-Apr-10 3:27
Ian Shlasko30-Apr-10 3:27 
GeneralRe: Issue with opening multiple form using delegate.BeginInvoke()...new form get hanged...Plz help Pin
Chintan.Desai2-May-10 23:27
Chintan.Desai2-May-10 23:27 
Hi Ian,

Thanks for your great advice.

I tried BackGroundWorker component also. However, I am getting same result - Form2 get hanged. Thereafter, I tried some stupid stuff and it worked.

I only copied form2_load code in public method (BuzyOperation) and called BuzyOperation() replacing it with frm2.show()

Form2 frm2;
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
    frm2 = new Form2();
    frm2.BuzyOperation(); //Earlier it was frm2.Show().
}

After completing BuzyOperation(), below code will execute which will only show form2 with Job Done msg.
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
    frm2.Show();//this will call frm2_load event, which is now empty. I copied all code to BuzyOperation()
    MessageBox.Show("Job done!");
}


I found the result as success, Now form2 is not getting hanged Thumbs Up | :thumbsup: . I don't know what is going inside frm2.Show() (in our earlier scenerio), but i would like to know from you. Confused | :confused:

Pls. let me know.
Thanks in advance,
Chintan.

GeneralRe: Issue with opening multiple form using delegate.BeginInvoke()...new form get hanged...Plz help Pin
Ian Shlasko3-May-10 1:56
Ian Shlasko3-May-10 1:56 
AnswerRe: Issue with opening multiple form using delegate.BeginInvoke()...new form get hanged...Plz help Pin
#realJSOP30-Apr-10 9:59
professional#realJSOP30-Apr-10 9:59 
QuestionserialPort Pin
jashimu30-Apr-10 3:07
jashimu30-Apr-10 3:07 
AnswerRe: serialPort Pin
OriginalGriff30-Apr-10 3:17
mveOriginalGriff30-Apr-10 3:17 
GeneralRe: serialPort Pin
jashimu30-Apr-10 3:37
jashimu30-Apr-10 3:37 
GeneralRe: serialPort Pin
OriginalGriff30-Apr-10 3:42
mveOriginalGriff30-Apr-10 3:42 
GeneralRe: serialPort Pin
jashimu30-Apr-10 4:41
jashimu30-Apr-10 4:41 
AnswerRe: serialPort Pin
Luc Pattyn30-Apr-10 5:31
sitebuilderLuc Pattyn30-Apr-10 5:31 
QuestionHow to create a datagrid in property grid Pin
Sangeetha2330-Apr-10 2:28
Sangeetha2330-Apr-10 2:28 
AnswerRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 5:11
professionalEddy Vluggen30-Apr-10 5:11 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute30-Apr-10 6:52
Henry Minute30-Apr-10 6:52 
GeneralRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 7:43
professionalEddy Vluggen30-Apr-10 7:43 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 18:17
Sangeetha232-May-10 18:17 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 19:29
Sangeetha232-May-10 19:29 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute3-May-10 3:15
Henry Minute3-May-10 3:15 
QuestionString formatting? Pin
Dirk C De Winnaar30-Apr-10 2:03
Dirk C De Winnaar30-Apr-10 2:03 
AnswerRe: String formatting? [modified] Pin
Luc Pattyn30-Apr-10 2:33
sitebuilderLuc Pattyn30-Apr-10 2:33 

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.