-1
I’m using TextBoxt Multiline
to "issue" the report in the system itself.
Ta printing, however, appears the following message: "System.Windows.Forms.Textbox" and then the data.
public Formulário()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
using (StreamReader ler = new StreamReader(@"escrevesaida.txt"))
{
string leitor;
while ((leitor = ler.ReadLine()) != null)
{
textBox1.AppendText($"{leitor}{Environment.NewLine}");
}
}
}
Right, We solved a problem. Only it appears the result preceded by System.Windows.Forms.Textbox, Text: 123
– Hellan Diangell's
Is appearing:
System.Windows.Forms.TextBox, Text: 123
in the field?– Thiago Magalhães
Yes Yes, the correct data is 123, but these things appear before there.
– Hellan Diangell's
somewhere in your code, you must be doing:
textBox1.Text += textBox1;
– Thiago Magalhães
No, because it’s a new screen, and the function is private.
– Hellan Diangell's
Take a look if you really aren’t doing it by accident...
– Thiago Magalhães
I even looked, but there’s nothing. Even, there’s 90% of the code. Previous to this has the standard parts of Visual ... The standard functions..
– Hellan Diangell's