Muteen ul Haq

Muteen ul Haq

  • NA
  • 74
  • 8.4k

Windows squeeze as Windows Media Player Upload File. Why??

Sep 4 2010 6:29 PM
HI!
I write this code to open and run windows media player. Its work correctly. But there is little problem as I upload any song the size of my window squeeze. Can you please tell me which value or parameters I need to change? 
Thanks

NOTE:
private System.Windows.Forms.OpenFileDialog openMediaFileDialog;
private AxMediaPlayer.AxMediaPlayer axWindowsMediaPlayer1;

private void browsButton_Click(object sender, EventArgs e)
        {
            openMediaFileDialog.ShowDialog();
            axWindowsMediaPlayer1.URL = openMediaFileDialog.FileName;

            axWindowsMediaPlayer1.Size = new Size(300, 200);
            this.Size = new Size(axWindowsMediaPlayer1.Size.Width + 60, axWindowsMediaPlayer1.Size.Height + 100);

        }

Answers (2)