smoky_flame
Sat Mar 15 14:43:43 CDT 2008
actually im taking input in textboxes. ive done this with single vales as i
used:
if (TextBox4_pa.Text == "1")
{
p1.StartCap = LineCap.ArrowAnchor;
Gfx.DrawLine(p1,200,140,76,80);
}
if (TextBox4_pa.Text == "2")
{
p1.StartCap = LineCap.ArrowAnchor;
Gfx.DrawLine(p1, 210, 140, 190, 50);
}
if (TextBox4_pa.Text == "3")
{
p1.StartCap = LineCap.ArrowAnchor;
Gfx.DrawLine(p1, 210, 140, 160, 110);
}
but i cant do it with values in the textbox like 1,2,3 ....any coding
suggestions or help.?
Jon Skeet [C# MVP] wrote:
>> is it possible to take multiple values(int) seperated by commas as input from
>> textbox in C# and draw a figure using those values.
>> e.g. drawing a simple path using 1,2,3,4 values.
>
>Yes, certainly. Which bit are you having trouble with? Split the job
>into several small tasks, and focus on one at a time. If you have a
>problem with one particular task, I suggest you ask about that task in
>isolation.
>
--
Message posted via
http://www.dotnetmonster.com