QUOTE(chronoTrigger @ 19 Aug, 2008 - 06:19 PM)

Just scanning through the code from your link already makes me dizzy because it's too complicated for me to follow.. But thanks though.
There are just too many of Pinvoke which I'm still new to it, but thank you. I used the Timer event to display image and set the time interval. It works fine for now.
QUOTE(djkitt @ 20 Aug, 2008 - 08:14 AM)

QUOTE(chronoTrigger @ 18 Aug, 2008 - 07:57 PM)

I would like to know if there is a way that I can wait for the picturebox to show the image on screen before continuing to execute the next code?
thanks
Just use the LoadCompleted event, like so:
CODE
private void pictureBox1_LoadCompleted(object sender, AsyncCompletedEventArgs e)
{
// Call your snapshot routine in here,
}
Hope this helps,
Kitt
Using Timer for me is working fine. Although maybe LoadCompleted event can help me to determine whether the picture actually loaded without having to verify visually on screen because as it right now, the picture is loading what if in a different case the picture doesn't even load at all. I will check LoadCompleted, thanks.
This post has been edited by chronoTrigger: 22 Aug, 2008 - 08:25 AM