Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: class Pin
AspDotNetDev30-Apr-10 20:34
protectorAspDotNetDev30-Apr-10 20:34 
AnswerRe: class c# Pin
PIEBALDconsult30-Apr-10 4:41
mvePIEBALDconsult30-Apr-10 4:41 
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 
Hi All,

I am bogged down with some weird issue. I have one login form having login button. At the click of login button, I need to show one form (say form2). This form2 do some buzy operation (5 second) in form2_load event. I need to show one progress bar also (at click of login button - before showing form2) telling user that something is running - so pls wait...

Coding stuffs:
I am using delegate's BeginInvoke code. Below is login button click event:
BuzyOperationDelegate del = new BuzyOperationDelegate(BuzyOperation);
IAsyncResult result = del.BeginInvoke(null,null);
while (result.IsCompleted == false)
{
   //progress bar shown here...
}


In BuzyOperation(), I am opening new form (i.e. form2) as shown below:
private int BuzyOperation()
 {
         Form2 frm2 = new Form2();
         frm2.Show();//this will take 5sec.
         return 1;
 }


Here is my issue. form2 get hanged. Sleepy | :zzz:

Progress bar is running absolutely correct asynchronously Thumbs Up | :thumbsup: . I am also using Application.DoEvents(). But still form2 gets hanged. Sleepy | :zzz:

Plz help...

Chintan
Thanks in advance,
Chintan.

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 
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 

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.