Salve, mi dite come si fa ad fare che legge tutta la textbox inserendola in questo codice:
private void Simula_Click(object sender, EventArgs e)
{
Elabora_.Enabled = true;
Elabora_.Interval = 10;
pBelaboarazione.Value = 100;
this.box.Image = null;
Bitmap bmp = new Bitmap(this.box.Width / 2, this.box.Height / 2);
Graphics g = Graphics.FromImage(bmp);
Pen redPen = new Pen(Color.Red, 1 / g.DpiX);
redPen.Width = 2;
g.PageUnit = GraphicsUnit.Millimeter;
List<PointF> pt = new List<PointF>();
string line = "" + tbCode.Text + "";
string[] coordinate = line.Split(';');
int x = Convert.ToInt32(coordinate[0]);
int y = Convert.ToInt32(coordinate[1]);
PointF p = new PointF(x, y);
pt.Add(p);
Pen pen = new Pen(Color.Black, 3);
g.DrawLine(pen, 0, 0, p.X, p.Y);
pBelaboarazione.Value = 100;
this.box.Image = bmp;
} // Pulsante simula
devo far far il cliclo per leggere tutta la textbox tbCode.text
ecco qui:
List<PointF> pt = new List<PointF>();
string line = "" + tbCode.Text + "";
string[] coordinate = line.Split(';');
int x = Convert.ToInt32(coordinate[0]);
int y = Convert.ToInt32(coordinate[1]);
PointF p = new PointF(x, y);
pt.Add(p);
Mi dite come fare?.
grazie.
EDIT VOLEVO DIRE CON C#