Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > VB2005 Save coordinates in array?
 

VB2005 Save coordinates in array?

Hello,

I have a form called frmMainForm. On that form I have a datagridview containing several products.
When I click on a rowheader of the datagridview another form openes called frmCuts.
On the frmCuts you can add coordinates for a product.
For example (2, 2, 67, 103).

How can I assign these coordinates to the row in the datagridview?
I am not allowed to save the coordinates in the database.

How do I save them for the duration that the program is open?
Bodylojohn  Wednesday, February 07, 2007 12:01 PM

Define a class named coordinateswhich have four properties X,Y,Width,Height; then use a IList object to store the coordinates objects. something as:

cors = new ArrayList();

cors.Add(new coordinates(0,0,35,25));

Zhi-Xin Ye  Wednesday, February 07, 2007 1:40 PM

Define a class named coordinateswhich have four properties X,Y,Width,Height; then use a IList object to store the coordinates objects. something as:

cors = new ArrayList();

cors.Add(new coordinates(0,0,35,25));

Zhi-Xin Ye  Wednesday, February 07, 2007 1:40 PM

You can use google to search for other answers

Custom Search

More Threads

• How to show a default text when no rows is bounded in a grid?
• Using a form field to control the datasource of a combobox on a datagridview
• Problem of bingdingNavigator and tabControls
• how can i check textbox contain alphabet?
• dataGridView Changed, How Can I Fix My Code?
• DataGridView not deleting correct rows
• Sorting & Refreshing a DataGridView
• How to associate datagridview with list<>
• Exception in Mydataset.Tables("Table").Rows.Add(rowNewRow)
• Datagridview: Cell with more than one value from DB is readonly, what can i do?