Jump to content
arrelialp

Enviar dialog box

Recommended Posts

arrelialp

Viva,

Gostaria de enviar uma caixa de diálogo (dialog box), após o utilizador carregar num button.

Nesta caixa de diálogo, que aparecerá no ecrã, o utilizador terá que escrever um texto, carregando de seguida em Gravar, ou Cancelar.

Obrigado desde já.

Share this post


Link to post
Share on other sites
arrelialp

Ok,

Está feito. Deixo o código para quem precisar:


Private Sub okButton_Clik(ByVal sender As Object, _ ByVal e As EventArgs) Handles okButton.Click

        Dim message, title, defaultValue As String

        Dim myValue As Object

         message = "Entre um nome para a tabela:"

         title = "Nome da Tabela:"

        defaultValue = "Teste"   
  
        myValue = InputBox(message, title, defaultValue)

        If myValue Is "" Then myValue = defaultValue
End Sub

Obrigado pela ajuda :)

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.