Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: crap Pin
Luc Pattyn22-Dec-09 7:58
sitebuilderLuc Pattyn22-Dec-09 7:58 
AnswerRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:29
harold aptroot22-Dec-09 6:29 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:51
mveChris Copeland22-Dec-09 6:51 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:55
harold aptroot22-Dec-09 6:55 
AnswerRe: Storing 2 bytes in one Pin
J4amieC22-Dec-09 6:35
J4amieC22-Dec-09 6:35 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:49
mveChris Copeland22-Dec-09 6:49 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:52
harold aptroot22-Dec-09 6:52 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:57
mveChris Copeland22-Dec-09 6:57 
Well, let's say each cell has a corresponding slot in an array containing information about the cell.

Each cell, when clicked or managed, will refer to the single slot in an array corresponding to the co-ordinates or row,column values.

If I was to use a method that relies on adding or multiplying x and y, there are chances that two cell coordinates may intersect and point to the same object. Therefore, I need the mathematical formula that produces an output using x and y to be a unique index key (not too large, otherwise the array would consume considerable amounts of memory), so that it may point to a slot in the array of cell information.

1,1 => Slot 1 in the array
1,2 => Slot 2 in the array
2,1 => Different slot than '1,2'.

Thank you Smile | :)
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:09
harold aptroot22-Dec-09 7:09 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 7:18
mveChris Copeland22-Dec-09 7:18 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:21
harold aptroot22-Dec-09 7:21 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 7:29
mveChris Copeland22-Dec-09 7:29 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 7:48
harold aptroot22-Dec-09 7:48 
GeneralRe: Storing 2 bytes in one Pin
Ben Fair22-Dec-09 11:06
Ben Fair22-Dec-09 11:06 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 11:14
harold aptroot22-Dec-09 11:14 
GeneralRe: Storing 2 bytes in one Pin
J4amieC22-Dec-09 21:30
J4amieC22-Dec-09 21:30 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 21:44
harold aptroot22-Dec-09 21:44 
AnswerRe: Storing 2 bytes in one Pin
PIEBALDconsult22-Dec-09 10:28
mvePIEBALDconsult22-Dec-09 10:28 
GeneralRe: Storing 2 bytes in one Pin
Luc Pattyn22-Dec-09 12:00
sitebuilderLuc Pattyn22-Dec-09 12:00 
AnswerRe: Storing 2 bytes in one Pin
J4amieC22-Dec-09 21:33
J4amieC22-Dec-09 21:33 
AnswerRe: Storing 2 bytes in one Pin
vtchris-peterson23-Dec-09 7:26
vtchris-peterson23-Dec-09 7:26 
Questionproblem with list view selection. Pin
santhosh-padamatinti22-Dec-09 5:20
santhosh-padamatinti22-Dec-09 5:20 
AnswerRe: problem with list view selection. Pin
EddieRich22-Dec-09 5:37
EddieRich22-Dec-09 5:37 
QuestionWebparts Pin
NETLearning22-Dec-09 5:06
NETLearning22-Dec-09 5:06 
QuestionC# / LINQ Directory.GetFiles Pin
Wheels01222-Dec-09 3:37
Wheels01222-Dec-09 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.