Question:

Network Connectivity Display Between Computers Within The Network!!!?

by  |  earlier

0 LIKES UnLike

Dear Friend

For example, I have 10 computers within my network. Now, I want to display a graphical display when the computers would be connected within the network one after another, a graphical display would be shown along with their IP address.

Could you please help me by providing the code by which I can design a program under Visual Basic 6.0?

Please help me on this issue.

Regards

Pervez

 Tags:

   Report

1 ANSWERS


  1. first you want to create a picture box(and place an image in it).

    then you're going to go into a control and add the Microsoft winsock component. finally,add a label,and timer, and position them the way you want.

    name the picture box pic1, the winsock socket1, the timer tmr1, and the label lbl1.

    set the interval on the timer to 500 or so, and enter the following code for it.

    socket1.senddata = "test"

    pic1.visible = false

    end sub

    now set the properties on the winsock component.

    localhost: 1

    remotehost: 1

    remote ip: 255.255.255.255

    and enter the code under the heading 'receive data'

    pic1.visible = true

    lbl1.caption = socket1.localip

    end sub

    and that should do the trick.

    p.s. I'm a little sketchy on the commands, so rely on the autofiller if you get an error. it should tell you the correct version. if i find a way to get VBportable working on linux, I'll give you the proper code.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.