RE: VB.net list Extention video -Save as type dengan Savedialog ?

Saya membuat save as video type dengan vbnet?

Kode sementara:

==============*

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Dim sfd As New SaveFileDialog

        sfd.Title = “Save Video As…”

        sfd.FileName = “Untitled”

        sfd.DefaultExt = “avi”

        sfd.AddExtension = True

        If sfd.ShowDialog = Windows.Forms.DialogResult.OK Then

            Button1.Enabled = False

            Button2.Enabled = False

            Button3.Enabled = True

         End If

End Sub

===========

Hasil yang saya inginkan ada list di Save as type : avi,mpeg,mp4 dlll

Tolong di bantu 🙂

RE: VB.net list Extention video -Save as type dengan Savedialog ?

kangris SMP Ditanyakan on 23 October 2016 pada Proggraming.
Tambah Komentar

public sub SaveFile

With SaveFileDialog1

.DefaultExt = ".txt"

.FilterIndex = 1

.RestoreDirectory = True

.Filter = "Text Files (*.txt)|*.txt|All files (*.*)|*.*"

.InitialDirectory = "C:\AppTemp"

.Title = "Save processed file"

If .ShowDialog() = DialogResult.OK then

Dim FileWriter As New StreamWriter(.Filename)

FileWriter.Write(TextOut)

FileWriter.Close()

End If

End With

End Sub

#Ubah

.DefaultExt = “.txt”

.Filter = “Text Files (*.txt)|*.txt|All files (*.*)|*.*”

Megister Terjawab on 23 October 2016

Oo,pakai filter toh gan ?

terima kasih petunjuknya gan 🙂

on 23 October 2016.
Tambah Komentar

Jawaban Anda

Dengan memposting jawaban, anda setuju dengan Kebijakan Privasi dan ketentuan layanan.