1
Good, I have this snippet of code in C# and everything is working, but I have an error that I haven’t been able to solve, as you can see in the image and in the code. The label1 is fetching text from a textbox, as you can see here:
I only want the "M000050" to appear for example. What is before does not matter that it appears, because it does not allow to record.
ERROR
CODE
private void button1_Click(object sender, EventArgs e)
{
SaveFileDialog salvar = new SaveFileDialog();
salvar.FileName = label1 + ".cnf";
salvar.Filter = "Ficheiro de Configuração|*.cnf";
salvar.DefaultExt = "txt";
DialogResult salvou = salvar.ShowDialog();
(...)
}
No more friend, nor had I detected my little mistake. Cumps
– Don Vito