just a quickie - my head seems to have gone blank
i have an enum
i have a value ( say 5) - can i get the string ("trailer") into a text box this way ?Code:public class1 { public enum types { car=1, bike =3, trailer=5, lorry = 11 } }
am i doing this the right way round or is an enum not the way i need to do it.Code:int value = 5; textbox1.text = ???? <----- get the word 'trailer' to go to text box please
would i be better with a switch/case statement ?
thanks