I have a chunk of code that was written prior to me getting on the project.
PageSelection((int)((Page)((Control) sender).Parent).Tag)
Now I understand what page selection does and it accepts an int.
PageSelection((int) //set up method and cast to int
the next part is a call to a class
((Page)
but what exactly does this do?
((Control) sender). //Is this a page event? any ideas? When I go to the deffinition it takes me to the object browser and I am completly loss on what exactly this is trying to do and how to fix it.
tia
PageSelection((int)((Page)((Control) sender).Parent).Tag)
Now I understand what page selection does and it accepts an int.
PageSelection((int) //set up method and cast to int
the next part is a call to a class
((Page)
but what exactly does this do?
((Control) sender). //Is this a page event? any ideas? When I go to the deffinition it takes me to the object browser and I am completly loss on what exactly this is trying to do and how to fix it.
tia