Jump to content
xoppyksol3

Como adicionar código ao botão

Recommended Posts

xoppyksol3

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

Share this post


Link to post
Share on other sites
xoppyksol3

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.

Share this post


Link to post
Share on other sites
xoppyksol3

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.