Should go something like this:
private Sub button1_Click(object sender, System.EventArgs e) handles button1.Click
AddHandler me.capture.FrameEvent2, Capture.HeFrame(this.CaptureDone)
me.capture.GrapImg()
End Sub
<br />
private Sub CaptureDone(System.Drawing.Bitmap e)
me.pictureBox1.Image = e
// Show only the selected frame ...
// If you want to capture all frames, then remove the next line
RemoveHandler me.capture.FrameEvent2, Capture.HeFrame(this.CaptureDone)
End Sub
<br />
private Sub button2_Click(object sender, System.EventArgs e) Handles button2.Click
if (me.pictureBox1 != null AndAlso
me.pictureBox1.Image Not null AndAlso
me.imageFileName.Text.Length > 0) Then
me.pictureBox1.Image.Save(this.imageFileName.Text,
System.Drawing.Imaging.ImageFormat.Bmp)
End If
End Sub