So I have a dropdown box that I have filled with two values: AFD, CFD. All I'm trying to do is to get a text box (txtComp) to change its value to that of a dropdown list box (cmbCompany) selection. For some reason I cannot get the text box to reflect this data. I can't even get the text box to just say "CFD" like below with an index change in the dropdown box (which is initially set to "AFD" onload). When I run the debugger and change the dropdown box's values it never recognizes that the "cmbCompany_SelectedIndexChanged" sub (below) is never even initiated. Am I missing something? What all do I need to do to make the txtComp value change to that of the dropdown box on an index change? Thanks for your help!
VB.NET:
[FONT=Courier New][SIZE=2][FONT='Courier New'] [COLOR=blue][COLOR=blue]Public[/COLOR][/COLOR] [COLOR=blue][COLOR=blue]Sub[/COLOR][/COLOR] cmbCompany_SelectedIndexChanged([COLOR=blue][COLOR=blue]ByVal[/COLOR][/COLOR] sender [COLOR=blue][COLOR=blue]As[/COLOR][/COLOR] [COLOR=blue][COLOR=blue]Object[/COLOR][/COLOR], [COLOR=blue][COLOR=blue]ByVal[/COLOR][/COLOR] e [COLOR=blue][COLOR=blue]As[/COLOR][/COLOR] System.EventArgs) [COLOR=blue][COLOR=blue]Handles [/COLOR][/COLOR]cmbCompany.SelectedIndexChanged[/FONT][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][FONT='Courier New'] [COLOR=blue][COLOR=blue]Me[/COLOR][/COLOR].txtComp.Text = "CFD"[/FONT][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][FONT='Courier New'] [COLOR=blue][COLOR=blue]End[/COLOR][/COLOR] [COLOR=blue][COLOR=blue]Sub[/COLOR][/COLOR][/FONT][/SIZE][/FONT]