I'm trying to get a key with the value of the index so I'm using acceXLS.GetKey(lb.SelectedIndex);
but I get the error :
'System.Collections.Generic.SortedList<int,int>' does not contain a definition for 'GetKey' and no extension method 'GetKey' accepting a first argument of type 'System.Collections.Generic.SortedList<int,int>' could be found (are you missing a using directive or an assembly reference?)
I don't understand why it's not working since it's working fine when I type it in the Watch Section when debugging (See attached image).
![undecided :|](http://www.theswamp.org/Smileys/black/undecided.gif)