xoppyksol3 Posted May 27, 2013 at 04:57 PM Report #509227 Posted May 27, 2013 at 04:57 PM Alguem me pode ajudar como eu adiciono codigo ao outro butão? Por ex: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click ao clicar agora no botao 1 ele vai adicionar codigo ao butao2 Ajudem Sff
nelsonr Posted May 27, 2013 at 05:09 PM Report #509234 Posted May 27, 2013 at 05:09 PM Que tipo de código queres adicionar ao botão 2?
xoppyksol3 Posted May 27, 2013 at 05:14 PM Author Report #509237 Posted May 27, 2013 at 05:14 PM Um qual quer até msg box mas tipo eu carrego no bot1 e aquilo adiciona codigo no bot2 e agora se carregar no bot2 ja vai mostrar por ex a mensagem.
nelsonr Posted May 27, 2013 at 05:23 PM Report #509238 Posted May 27, 2013 at 05:23 PM Uma forma de fazer isso, será no evento do botão 1, adicionares um handler ao click do botão 2 para chamar uma função. Vê aqui um exemplo: http://shawpnendu.blogspot.pt/2010/04/runtime-add-dynamic-button-and-handle.html
xoppyksol3 Posted May 27, 2013 at 05:38 PM Author Report #509239 Posted May 27, 2013 at 05:38 PM Não ha tipo assim Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menu1.Click button2.add.code(msgbox("Olá")) mas com a sintaxe correta
xoppyksol3 Posted May 27, 2013 at 06:06 PM Author Report #509243 Posted May 27, 2013 at 06:06 PM Ja descobri obrigadao 😉 nelsonr
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