Take Snapshot amendment ؟
I've got a tool
AxWindowsMediaPlayer1
WebBrowser1
This code Snapshot Tool AxWindowsMediaPlayer1
I want to Snapshot Take pictures of a tool that running , Such as if working tool AxWindowsMediaPlayer1 , Such as if working tool WebBrowser1 ؟
I've got a tool
AxWindowsMediaPlayer1
WebBrowser1
This code Snapshot Tool AxWindowsMediaPlayer1
Dim saveFile As String = path & ".jpg" Dim cropSize As Size = AxWindowsMediaPlayer1.Size Dim croppedImage As New Bitmap(AxWindowsMediaPlayer1.Size.Width, AxWindowsMediaPlayer1.Size.Height) Dim G As Graphics = Graphics.FromImage(croppedImage) G.CopyFromScreen(AxWindowsMediaPlayer1.PointToScreen(Nothing), Nothing, cropSize) PictureBox1.Image = croppedImage croppedImage.Save(saveFile) MsgBox("Saved File To : " & saveFile) 'Showing the whole path where capturedImage is saved Process.Start(saveFile) 'Showing The Captured Image In Windows Image Viewer
I want to Snapshot Take pictures of a tool that running , Such as if working tool AxWindowsMediaPlayer1 , Such as if working tool WebBrowser1 ؟