5 Replies - 9752 Views - Last Post: 06 November 2012 - 02:35 PM

#1 BornAfterTV  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 05-June 12

Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:10 PM

Hi All,

Hope I have the correct forum.

I'm building a game and am currently making some editors to generate XML. I'm looking for an control that will easily let me store a List of [int, int] or Vector2. Currently I'm using 2 Multiline Text Boxes (1 for Vector2.X and 1 for Vector2.Y). I cycle through the TextBox Lines and use the data to create a Vector2 and add that to a List<Vector2> which I then export to XML.

I haven't done alot of .Net or Windows Form work so was wondering if there is a control that I'm over looking that would be better suited.

Is This A Good Question/Topic? 0
  • +

Replies To: Multi-Dimention Array Form Control?

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8849
  • View blog
  • Posts: 33,157
  • Joined: 12-June 08

Re: Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:16 PM

You can always make a "list (of Point)".

http://msdn.microsof...wing.point.aspx
Was This Post Helpful? 0
  • +
  • -

#3 BornAfterTV  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 05-June 12

Re: Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:26 PM

Thanks Modi123_1,

Just to make my first post a little clearer. I'm happy using Vector2 but it is the graphical form control that I'm wanting to replace. Using 2 Multiline text Boxes seems messy. I'm hoping for multi-column textbox or the like?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8849
  • View blog
  • Posts: 33,157
  • Joined: 12-June 08

Re: Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:26 PM

... so a gridview?
Was This Post Helpful? 0
  • +
  • -

#5 BornAfterTV  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 05-June 12

Re: Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:33 PM

Gridview you say, never heard of it but will give it a crack tonight :) Thanks.

Update: Just read up about what a Gridview is and it sounds bang on to what I was after. Thanks again!
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8849
  • View blog
  • Posts: 33,157
  • Joined: 12-June 08

Re: Multi-Dimention Array Form Control?

Posted 06 November 2012 - 02:35 PM

Indeed:
http://msdn.microsof...y/k39d6s23.aspx

http://msdn.microsof...tagridview.aspx

http://www.dreaminco...d-datagridview/

http://www.dreaminco...lendar-control/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1