示例#1
0
 public MP4()
 {
     InitializeComponent();
     label1.Hide();
     button2.Hide();
     textBox1.Hide();
     label3.Hide();
     UseAudioCheckBox.Hide();
     VideoSizeComboBox.Hide();
     VideoSizeComboBox.SelectedIndex = 0;
 }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog open = new()
            {
                Title            = "Search for a mp4 file",
                Filter           = "mp4 file (*.mp4)|*.mp4|All files (*.*)|*.*",
                FilterIndex      = 1,
                InitialDirectory = Directory.GetCurrentDirectory(),
                Multiselect      = false
            };

            if (open.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.mp4_video = open.FileName;
                Properties.Settings.Default.Save();
                label1.Show();
                button2.Show();
                textBox1.Show();
                label3.Show();
                VideoSizeComboBox.Show();
                UseAudioCheckBox.Show();
                return;
            }
        }