G
Guest
Hi,
I'm trying to update my GUI when an event is raised in my one of my
dlls.
my example code is:
-------------------
In GUI:
someLable.Text = " ";
---
---
someObj.UpdateEvent += new UpdateEventDelegate(UpdateGui);
someObj.UpdateCompleted += new UpdateCompletedDelegate(UpdateCompl);
---
---
UpdateGui()
{
someLable.Text = "Updated";
}
UpdateCompl()
{
someLable.Text = "Completed";
}
----------------------------------
In my dll:
i = 0;
while( i < 5 )
{
...
...
j = 0;
while( j < 2 )
{
....
....
j ++;
}
UpdateEvent();
i ++;
}
UpdateCompleted();
------------------------
Even though UpdatedEvent() is being raised, the changes are not
being reflected in the GUI. I mean, the changes made by the
UpdateEvent handler are not being reflected in the GUI.
But, GUI is reflecting the changes made by
UpdateCompleted event handler.
I can't understand why. What could be the problem.
Kindly let me know,
Cheers,
Naveen.
I'm trying to update my GUI when an event is raised in my one of my
dlls.
my example code is:
-------------------
In GUI:
someLable.Text = " ";
---
---
someObj.UpdateEvent += new UpdateEventDelegate(UpdateGui);
someObj.UpdateCompleted += new UpdateCompletedDelegate(UpdateCompl);
---
---
UpdateGui()
{
someLable.Text = "Updated";
}
UpdateCompl()
{
someLable.Text = "Completed";
}
----------------------------------
In my dll:
i = 0;
while( i < 5 )
{
...
...
j = 0;
while( j < 2 )
{
....
....
j ++;
}
UpdateEvent();
i ++;
}
UpdateCompleted();
------------------------
Even though UpdatedEvent() is being raised, the changes are not
being reflected in the GUI. I mean, the changes made by the
UpdateEvent handler are not being reflected in the GUI.
But, GUI is reflecting the changes made by
UpdateCompleted event handler.
I can't understand why. What could be the problem.
Kindly let me know,
Cheers,
Naveen.