This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, January 15, 2013 11:48:57 PM(UTC)
Groups: Registered
Posts: 22
Is there a way to work with the controll synchronous (currently asynchronous)? We will need to convert multiple xa multiframe images and need to continue the process only when all have been converted.
#2
Posted
:
Wednesday, January 16, 2013 6:44:10 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
One way to do that is to implement the Complete event of convert control and define a Boolean variable describes the status of the conversion like this:
+=====================================================================+
bool done;
private void button1_Click(object sender, EventArgs e)
{
done = false;
convertCtrl1.SourceFile = "IMAGE1.dcm";
convertCtrl1.TargetFormat = TargetFormatType.AVI;
convertCtrl1.TargetFile = "result.avi";
convertCtrl1.StartConvert();
while (!done)
{
Application.DoEvents();
}
}
private void convertCtrl1_Complete(object sender, EventArgs e)
{
done = true;
}
+=====================================================================+
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.