How to rotate an element in C#

Asked

Viewed 79 times

0

I’m creating software that runs the video at a 90º angle. I’m using axWindowsMediaPlayer (plugin provided by winform).

Screenshot da aplicação

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 RotationVideo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }        
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileOpened = new OpenFileDialog();
            if (fileOpened.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                textBox1.Text = fileOpened.FileName;
                axWindowsMediaPlayer1.URL = textBox1.Text;
                axWindowsMediaPlayer1.Ctlcontrols.play();
            }
        }
    }
}
  • I don’t believe this is possible with this component in a Windowsforms application

  • 1

    I imagine it is to display on televisions vertically. In this case, you can rotate the computer image and not the component.

No answers

Browser other questions tagged

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