hey guys,
recently i came across a code to parse the name of an enum and was wondering if there's anything similar to doing it for a textbox:
the coding looks something like this:
int result = (int)Enum.Parse(typeof(Cars.Engines), inputfixed, true);
i would actually like to use the above code structure in a for loop and go through a collection of controls, now i do not want to use foreach(Control ctrl...) because i have 3 controls which i want to go through with each loop and they have to be picked up one after another.
example:
first loop, only go through first column, second loop only go through 2nd column of controls and so on.
what i would like to do is define something like:
for(int i=0; i < something; i++)
{
if txt_from_[i] == something
if txt_to_[i] == something
if chkb_[i] == something
do something
}