CRIAR UMA IF TEXTBOX1.TEXT OR TEXTBOX2.TEXT
                    Olá Galera! Estou fazendo um programa, e não me lembro como faz para fazer essa: If TextBox1.Text Or TextBox2.Text is not = [Ô][Ô] Then
Eu quero que, se textbox1 ou textbox2 não for igual a [Ô][Ô] Then
Eu fiz desse jeito:
O erro dá no =: Expressão Esperada.
Obrigado!
            Eu quero que, se textbox1 ou textbox2 não for igual a [Ô][Ô] Then
Eu fiz desse jeito:
Citação:If TextBox1.Text Or TextBox2.Text is not = [Ô][Ô] Then
webclient2.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
Timer1.Start()
End If
O erro dá no =: Expressão Esperada.
Obrigado!
                    Amigo, aconselho estudar melhor sintaxe básica. 
                
            
if TextBox1.Text = [Ô][Ô] or TextBox2.Text = [Ô][Ô] then
....
                    Faça assim:
If TextBox1.Text <> [Ô][Ô] OrElse TextBox2.Text <> [Ô][Ô] Then
webclient2.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
Timer1.Start()
End If
            If TextBox1.Text <> [Ô][Ô] OrElse TextBox2.Text <> [Ô][Ô] Then
webclient2.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
Timer1.Start()
End If
                    Assim você garante que as duas caixas de texto tenham algumas coisa dentro:
If TextBox1.Text <> [Ô][Ô] AndAlso TextBox2.Text <> [Ô][Ô] Then
webclient2.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
Timer1.Start()
End If
            If TextBox1.Text <> [Ô][Ô] AndAlso TextBox2.Text <> [Ô][Ô] Then
webclient2.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text)
Timer1.Start()
End If
                    Pode ser feito:
[ô]Assim
if TextBox1.Text <> [Ô][Ô] and TextBox2.Text <> [Ô][Ô] Then
           
Seu codigo aqui
End If
[ô]ou assim
if TextBox1.Text <> [Ô][Ô] or TextBox2.Text <> [Ô][Ô] Then
           
Seu codigo aqui
End If
                
            [ô]Assim
if TextBox1.Text <> [Ô][Ô] and TextBox2.Text <> [Ô][Ô] Then
Seu codigo aqui
End If
[ô]ou assim
if TextBox1.Text <> [Ô][Ô] or TextBox2.Text <> [Ô][Ô] Then
Seu codigo aqui
End If
                    A Melhor Forma, e 
IF TextBox1.Text = String.Empty and TextBox2.Text = String.Empty then
END If
and pode ser trocar para or
Seu código deu error, por a instrução do textbox1 ta faltado, você só passo a instrução correta para o textbox2
Por Exemplo
IF Textbox1.text = [Ô]CONDIÇAO[Ô] and TextBOx2.Text = [Ô]CODICAO[Ô] then
End IF
            IF TextBox1.Text = String.Empty and TextBox2.Text = String.Empty then
END If
and pode ser trocar para or
Seu código deu error, por a instrução do textbox1 ta faltado, você só passo a instrução correta para o textbox2
Por Exemplo
IF Textbox1.text = [Ô]CONDIÇAO[Ô] and TextBOx2.Text = [Ô]CODICAO[Ô] then
End IF
                            Faça seu login para responder
                        
                    



