Hi everybody,
I am totally new in c#, I installed NReco Nuget Package and I am trying to experiment with it. All I want is to replace a part of a var with the text of a combobox but anything I tried seems not to be working,bellow you can find my code.
I hope it is understandable.
thanks you in advance
Pajito
I am totally new in c#, I installed NReco Nuget Package and I am trying to experiment with it. All I want is to replace a part of a var with the text of a combobox but anything I tried seems not to be working,bellow you can find my code.
I hope it is understandable.
thanks you in advance
Pajito
C#:
private void btnConvert_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
if (ofd.ShowDialog() == DialogResult.OK)
{
var convert = new NReco.VideoConverter.FFMpegConverter();
string a = "NReco.VideoConverter.Format.mp4";
a = a.Replace("NReco.VideoConverter.Format.mp4", "NReco.VideoConverter.Format" + comboBox1.Text);
convert.ConvertMedia(ofd.FileName, @textBoxDest.Text + ((char)92) + textBoxName.Text + comboBox1.Text, NReco.VideoConverter.Format.mp4);
MessageBox.Show("Converted MPLIET");
}
}
Last edited by a moderator: