neon_yt Posted February 13, 2016 at 05:35 PM Report Share #593456 Posted February 13, 2016 at 05:35 PM Olá, eu quero que, ao selecionar um item na ListBox, seja somado o preço dele a uma label. (Fazer a soma já sei, é label.text += quantidade) Exemplo: O jogo custa 6EUR, e ao selecionar o jogo ele soma automaticamente os 6EUR à label. Alguém me explica? Link to comment Share on other sites More sharing options...
He B TeMy Posted February 13, 2016 at 06:33 PM Report Share #593459 Posted February 13, 2016 at 06:33 PM Usa o evento SelectedIndexChanged https://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.selectedindexchanged%28v=vs.110%29.aspx Não sei se listbox seria o indicado para isto... mas n tou com ideias para escrever 😉 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now