Starting the Windows Media Player component in fullscreen

Asked

Viewed 241 times

1

When the application with Windows Media Player opens (Windows Forms) always have to press the button fullscreen to maximize the video that is running and would like it to start already in full screen.

  • Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?

1 answer

1

Just do this on the main form:

private void Form1_Load(object sender, EventArgs e) {
    this.TopMost = true;
    this.FormBorderStyle = FormBorderStyle.None;
    this.WindowState = FormWindowState.Maximized;
}

I put in the Github for future reference.

  • This then expands the whole form I would like only the component axmediaplayer. I’ve used this code for something else, so far without solving it.

  • You can’t put fullscreen only one component, what you can do is create another form where your component occupies all of it and then the form fullscreen. Without this trick you can’t solve.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.