hi,
private void cmd_Click(object sender...){
Int32 xValue = Convert.ToInt32(myTextBox.Lines[0]);
Int32 yValue = Convert.ToInt32(myTextBox.Lines[1]);
Point p1 = new Point(xValue, yValue);
(...)
so parse ich jede line aus der box in Int32 mit index
wie parse ich wenn ich die koordinaten in eine zeile schreibe und durch komma getrennt?
private void cmd_Click(object sender...){
Int32 xValue = Convert.ToInt32(myTextBox.Lines[0]);
Int32 yValue = Convert.ToInt32(myTextBox.Lines[1]);
Point p1 = new Point(xValue, yValue);
(...)
so parse ich jede line aus der box in Int32 mit index
wie parse ich wenn ich die koordinaten in eine zeile schreibe und durch komma getrennt?
Kommentar