Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I frequent other newsgroups, too, and am MOST IMPRESSED with the lack of smart a-- and presence of genuine desire to help anyone of any skill level..."

Geography

Where in the world do Tek-Tips members come from?
Chris77504 (IS/IT--Management)
18 Apr 12 15:59
i have a listview with 4 columns.  I am importing the items from a text file that go in column 1.  How can I add a subitem to each row for a specific item in column 1 to be say updated (added) in column 2.
Chris77504 (IS/IT--Management)
19 Apr 12 14:12
i figured this out with the below code:

the currentdt variable is a publich variable set for datetime of:

Public currentdt As DateTime = DateTime.Now
 

CODE

Private Sub cmdStartPing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStartPing.Click
        Dim serverlist, x As Integer
        Dim servers As String
        Dim response As New ListViewItem

        serverlist = lstServers.Items.Count - 1

        For x = 0 To serverlist

            servers = lstServers.Items(x).Text
            MultiPingSystem(servers)

            If pingresults = "Success" Then
                lstServers.Items(x).BackColor = Color.GreenYellow
                lstServers.Items(x).SubItems.Add("Success")
                lstServers.Refresh()
                lstServers.Items(x).SubItems.Add(roundtriptime)
                lstServers.Refresh()
            Else
                lstServers.Items(x).BackColor = Color.Red
                lstServers.Items(x).SubItems.Add("No Reply")
                lstServers.Refresh()
                lstServers.Items(x).SubItems.Add("Timeout")
                lstServers.Refresh()
                lstServers.Items(x).SubItems.Add(currentdt)
                lstServers.Refresh()

            End If
        Next

    End Sub

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close