Sunday, January 24, 2016

Memasukkan Video di VB.net

Posted By: BeOl - 4:58:00 AM


Buat project baru VBForm
Setelah itu klik kanan pada menu toolbox seperti gambar dibawah ini dan pilih Choose items
 
Akan muncul window seperti. Piih tab COM Components
Lalu cari Windows Media Player dan centang kotak sebelah kiri lalu klik OK
 
Setelah itu di toolbox akan muncul Windows Media Player
Double Click untuk memasukkan Windows Media Player ke dalam form.
Double Click pada Windows Media Player yang telah kita masukkan dalam form, lalu ketikan kode berikut: (sebelumnya pindahkan terlebih dahulu video ke dalam project anda, misal nama project adalah Videoku, pindahkan dalam Videoku\bin\debug)
    AxWindowsMediaPlayer1.URL = Application.StartupPath & "\JUDUL VIDEO.mp4"
 

About BeOl

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

Copyright © BeOl (Belajar Online)™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.