An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam. Built for students by a student to help them understand the concepts that they are being taught.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim MyStream As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("WindowsApplication1.lesson1.mpg") Dim MyFileStream As New System.IO.FileStream("TempFile.mpg", FileMode.Create) Dim MyBinaryWriter As New BinaryWriter(MyFileStream) Try Dim MyByte As Byte = MyStream.ReadByte While Not MyByte = -1 MyBinaryWriter.Write(MyByte) MyByte = MyStream.ReadByte End While Catch ex As Exception Finally MyFileStream.Close() End Try MyMovie.FileName = "TempFile.mpg" MyMovie.Play() End Sub Private Sub MyMovie_EndOfStream(ByVal sender As Object, ByVal e As AxMediaPlayer._MediaPlayerEvents_EndOfStreamEvent) Handles MyMovie.EndOfStream MyMovie.FileName = Nothing File.Delete("TempFile.mpg") End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.