Erro ShowDialog
27/06/2013
0
Estou tendo um erro quando utilizo ShowDialog()
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Line 42: abrir.Filter = "Arquivos Textos (*.txt)|*.txt" 'filtar por arquivos txt Line 43: abrir.RestoreDirectory = True Line 44: abrir.ShowDialog() 'abre a janela de dialogo Line 45: arquivo = abrir.FileName 'nome do arquivo Line 46: Me.TxtArquivo.Text = abrir.FileName
![Luis Carlos Luis Carlos](https://www.devmedia.com.br/imagens/fotoscolunistas/avatar/avatar-4.png)
Luis Carlos
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)