Dim cs As Size = PictureBox1.ClientSize SendString(String.Format("put MyMovie destination at 0 0 {0} {1}", cs.Width, cs.Height))
Private Function GetSourceRect() As Rectangle Dim resText As New String(ControlChars.NullChar, 128) Dim ret As Integer = mciSendString("where MyMovie source", resText, 128, 0) If ret = 0 Then Dim ltwh() As String = Split(resText.TrimEnd(ControlChars.NullChar)) Return New Rectangle(CInt(ltwh(0)), CInt(ltwh(1)), CInt(ltwh(2)), CInt(ltwh(3))) Else Return Rectangle.Empty End If End Function