muqqadas shabbir

muqqadas shabbir

  • NA
  • 49
  • 1.6k

enterprise application and development

Jun 9 2018 3:14 AM
I want to create windows media player form with C#  
i have chose a windowsMediaPlayer, textbox along with button which chose the path of video from my computer and then i have multiple buttons to save delete that path in database and as well as other controls like pause play etc BUT
button doesn't perform action,  To choose the path on button:
 
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog op = new OpenFileDialog();
if(op.ShowDialog()==System.Windows.Forms.DialogResult.OK)
{
this.textBox_path.Text = op.FileName;
}
}
 please direct me what's going wrong with this code OR another alternative way
thank YOU 
 

Answers (8)