前田稔(Maeda Minoru)の超初心者のプログラム入門
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); Width = 800; Height = 600; } private void button1_Click(object sender, EventArgs e) { if (this.openFileDialog1.ShowDialog() == DialogResult.OK) { string fileName = this.openFileDialog1.FileName; axWindowsMediaPlayer1.uiMode = "none"; axWindowsMediaPlayer1.URL = fileName; } } } } |