Click here to Skip to main content
15,908,907 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Coding Style Question Pin
#realJSOP28-Nov-09 7:40
professional#realJSOP28-Nov-09 7:40 
AnswerRe: Coding Style Question Pin
Not Active28-Nov-09 4:49
mentorNot Active28-Nov-09 4:49 
AnswerRe: Coding Style Question Pin
dan!sh 28-Nov-09 5:52
professional dan!sh 28-Nov-09 5:52 
AnswerRe: Coding Style Question Pin
T210228-Nov-09 22:55
T210228-Nov-09 22:55 
AnswerRe: Coding Style Question Pin
vtchris-peterson1-Dec-09 9:39
vtchris-peterson1-Dec-09 9:39 
Questionwait process , please help me Pin
darkyro28-Nov-09 2:12
darkyro28-Nov-09 2:12 
AnswerRe: wait process , please help me Pin
#realJSOP28-Nov-09 2:44
professional#realJSOP28-Nov-09 2:44 
AnswerRe: wait process , please help me Pin
darkyro28-Nov-09 3:35
darkyro28-Nov-09 3:35 
i don't know how to insert.

the button to shearch is here :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
       Dim posicaoatual As String
       Dim itemselecionado As String
       Dim t As Thread
       For Each items As ListViewItem In lstrefresh.Items
           items.Selected = True
           For Each selecionado As ListViewItem In lstrefresh.SelectedItems
               Main.PosicaoEstacaoNoList = selecionado.Index
               Main.estacaoSelected = selecionado.SubItems.Item(2).Text
               Control.Ping_to_host()

               't = New Thread(AddressOf processo.Ping_to_host)
               ' MessageBox.Show(Main.estacaoSelected & vbCrLf & Main.PosicaoEstacaoNoList)
               't.Start()

           Next

       Next

   End Sub



here i have the ping code :

Public Sub Ping_to_host()

       Main.RichTextBox1.Clear()
       Dim vez As String = 3

       'Dim host As String = Main.estacaoSelected
       Dim ip As String = Main.estacaoSelected
       Dim ans, ans2
       Dim i As Integer
       'ans = InputBox("Digite o Endereço desejado", "Host", "www.google.com.br")
       ans = ip
       If ans = "" Then

           Exit Sub
       Else
           host = ans.ToString
           'ans2 = InputBox("Pro favor digite a quantidade de vezes para pingar", "Ping count", "1")
           ans2 = vez
           If ans2 = "" Then
               Exit Sub
           Else
               vezes = ans2.ToString
               ' For i = 0 To System.Convert.ToInt32(vezes.Text)
               ' For i = 1 To System.Convert.ToInt32(vezes.Text)
               Me.Timer3.Enabled = True


               'Me.Timer3.Start()
               'Next

           End If

       End If


   End Sub

   Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
       Dim lstText As String
       Dim i As Integer


       'Me.Timer3.Enabled = True
       'Me.Timer3.Start()
       For i = 1 To System.Convert.ToInt16(vezes)


           Try
               If My.Computer.Network.Ping(Me.host) Then
                   'MsgBox("Ping successfull", MsgBoxStyle.Information, "Successfull")
                   lstText = Now() & "  ---  " & host & " -- " & "Ping OK" & vbCrLf
                   ' MsgBox("oi")
                   Main.RichTextBox1.Text = LTrim(Main.RichTextBox1.Text) & lstText
                   'If RefreshPC.refreshPC_tipo = "RefreshAll" Then
                   '    RefreshPC.status_ping = "ON"
                   'End If
                   stat = "on"
               Else
                   'MsgBox("Ping unsuccessfull", MsgBoxStyle.Critical, "Unsuccessfull")

                   lstText = Now() & "  ---  " & host & " -- " & "Ping error" & vbCrLf
                   Main.lstestacoes.Items.Item(Main.PosicaoEstacaoNoList).ImageIndex = 1

                   Main.RichTextBox1.Text = LTrim(Main.RichTextBox1.Text) & lstText

               End If
           Catch ex As Exception

               lstText = Now() & " " & host & " -- " & "Ping error" & vbCrLf
               Main.RichTextBox1.Text = LTrim(Main.RichTextBox1.Text) & lstText
               Main.lstestacoes.Items.Item(Main.PosicaoEstacaoNoList).ImageIndex = 1

           End Try
       Next
       Main.RichTextBox1.Text = LTrim(Main.RichTextBox1.Text) & "Done..."
       Me.Timer3.Enabled = False

       RaiseEvent ThreadCompleta(stat)
       'Me.Timer3.Stop()

   End Sub


with need more say me please...
GeneralRe: wait process , please help me Pin
darkyro8-Dec-09 4:08
darkyro8-Dec-09 4:08 
QuestionUsing Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff27-Nov-09 6:02
professionalBillWoodruff27-Nov-09 6:02 
AnswerRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
#realJSOP28-Nov-09 2:47
professional#realJSOP28-Nov-09 2:47 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff28-Nov-09 5:28
professionalBillWoodruff28-Nov-09 5:28 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
#realJSOP28-Nov-09 7:37
professional#realJSOP28-Nov-09 7:37 
GeneralRe: Using Ngen.exe : where is the VS Studio command prompt for VS 2010 beta 2 ? Pin
BillWoodruff28-Nov-09 19:27
professionalBillWoodruff28-Nov-09 19:27 
QuestionHow to set focus in CheckBox placed in User Control. Pin
Madhumanjuri Mitra26-Nov-09 22:39
Madhumanjuri Mitra26-Nov-09 22:39 
AnswerRe: How to set focus in CheckBox placed in User Control. Pin
dan!sh 26-Nov-09 23:05
professional dan!sh 26-Nov-09 23:05 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Madhumanjuri Mitra27-Nov-09 1:56
Madhumanjuri Mitra27-Nov-09 1:56 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
dan!sh 28-Nov-09 5:54
professional dan!sh 28-Nov-09 5:54 
AnswerRe: How to set focus in CheckBox placed in User Control. Pin
Shameel27-Nov-09 0:08
professionalShameel27-Nov-09 0:08 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
dan!sh 27-Nov-09 0:26
professional dan!sh 27-Nov-09 0:26 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Madhumanjuri Mitra27-Nov-09 1:49
Madhumanjuri Mitra27-Nov-09 1:49 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Shameel27-Nov-09 1:57
professionalShameel27-Nov-09 1:57 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Madhumanjuri Mitra27-Nov-09 2:22
Madhumanjuri Mitra27-Nov-09 2:22 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Shameel27-Nov-09 2:41
professionalShameel27-Nov-09 2:41 
GeneralRe: How to set focus in CheckBox placed in User Control. Pin
Madhumanjuri Mitra27-Nov-09 2:57
Madhumanjuri Mitra27-Nov-09 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.