Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
C# / VB.NET - app.path in vb.net(era: ancora io)
Forum - C# / VB.NET - app.path in vb.net(era: ancora io)

Avatar
alejandro (Normal User)
Rookie


Messaggi: 30
Iscritto: 29/10/2006

Segnala al moderatore
Postato alle 20:38
Domenica, 29/10/2006
scusate se rompo i codici con le mie domande,ma il passaggio da VB a VB.net si sta presentando + dificile del previsto:D
domanda:
che fine a fatto il vecchio e bravo "App.path"???8-|

P.S. :per non aprire un altro topic aggiungo un'altra domanda:

If (My.Computer.Network.IsAvailable) Then
    If My.Computer.Network.Ping("209.85.135.104", 1000) Then
       TextBox2.Text = "OK.Computer en red"
    Else
       TextBox2.Text = "KO.Computer no en red"
    End If
End If

mi chiede la conessione ( tramite firewall ) e poi mi ritorna False.ma VB6 a lo stesso ip mi pinga benissimo:grr:

scusate se rompo i codici con le mie domande,ma il passaggio da VB a VB.net si sta presentando + dificile del previsto:D
domanda:
che fine a fatto il vecchio e bravo "App.path"???8-|

P.S. :per non aprire un altro topic aggiungo un'altra domanda:

If (My.Computer.Network.IsAvailable) Then
    If My.Computer.Network.Ping("209.85.135.104", 1000) Then
       TextBox2.Text = "OK.Computer en red"
    Else
       TextBox2.Text = "KO.Computer no en red"
    End If
End If

mi chiede la conessione ( tramite firewall ) e poi mi ritorna False.ma VB6 a lo stesso ip mi pinga benissimo:grr:

edit by netarrow: titolo fuori regolamento! ho sistemato io sta volta.

Ultima modifica effettuata da netarrow il 03/11/2006 alle 12:25
PM Quote
Avatar
GoLDBeRG (Ex-Member)
Expert


Messaggi: 331
Iscritto: 19/12/2005

Segnala al moderatore
Postato alle 6:37
Mercoledì, 01/11/2006
app.path è diventato application.startuppatch riguardo al ping non so ciao

PM Quote
Avatar
Il Totem (Admin)
Guru^2


Messaggi: 3635
Iscritto: 24/01/2006

Segnala al moderatore
Postato alle 18:02
Giovedì, 02/11/2006
Ho scritto poco tempo fa un programma sul ping in vb.net, vedi se riesci a trovarlo con il motore di ricerca del sito. Il nome dovrebbe, originalmente, essere 'ping'.

PM Quote
Avatar
alejandro (Normal User)
Rookie


Messaggi: 30
Iscritto: 29/10/2006

Segnala al moderatore
Postato alle 21:28
Giovedì, 02/11/2006
no ho trovato il tuo lavoro :( se ce l'hai ancora il sorgente me lo potresti inviare via e-mail.cmq:
Codice sorgente - presumibilmente VB.NET

  1. Public Class frmScanLink
  2.  
  3.     Private Sub btStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btStart.Click
  4.         Dim delta As Long
  5.         If My.Computer.Network.IsAvailable Then
  6.             For delta = 90 To 110
  7.                 Application.DoEvents()
  8.                 If My.Computer.Network.Ping((txIP.Text & delta), Val(txTimeOut.Text)) Then
  9.                     txVentana.Text = txVentana.Text & (txIP.Text & delta) & _
  10.                                      " -- Maquina conectada en red" & vbCrLf
  11.                 Else
  12.                     txVentana.Text = txVentana.Text & (txIP.Text & delta) & _
  13.                                      " -- Maquina no conectada en red" & vbCrLf
  14.                 End If
  15.             Next
  16.         End If
  17.     End Sub
  18.  
  19.     Private Sub btClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btClear.Click
  20.         txVentana.Text = vbNullString
  21.     End Sub
  22. End Class


funge,male,ma funge:k:
il passaggio da vb6 al .net sta diventando un po ostico.lo stesso programma in vb6 va una canonata.

PM Quote