Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Winsock control

Winsock control

Scheduled Pinned Locked Moved Visual Basic
helpdatabase
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mohan_balal
    wrote on last edited by
    #1

    Now, I put two winsock controls in Form. Here is my Form Load code: Dim cnt, cnt1 cnt = 0 For i = 1 To List1.ListCount Load Winsock1(i) Winsock1(i).LocalPort = List1.List(cnt) Winsock1(i).Listen For j = 1 To List1.ListCount cnt1 = cnt + 1 Winsock2(j).LocalPort = List1.List(cnt1) Winsock2(j).Listen Next MsgBox List1.List(cnt) cnt = cnt + 1 Next Error is: Run-time Error "438" Object doesn't support this Property and Method. Mybe Problem is Index Value of Both winsock1 and winsock2 controls. I want to First Port Number Open and Listen by winsock1(i) then second Port Number open and Listen by Winsock2(j). Please send me Reply soon Mohan :confused: Mohan Balal

    D 1 Reply Last reply
    0
    • M mohan_balal

      Now, I put two winsock controls in Form. Here is my Form Load code: Dim cnt, cnt1 cnt = 0 For i = 1 To List1.ListCount Load Winsock1(i) Winsock1(i).LocalPort = List1.List(cnt) Winsock1(i).Listen For j = 1 To List1.ListCount cnt1 = cnt + 1 Winsock2(j).LocalPort = List1.List(cnt1) Winsock2(j).Listen Next MsgBox List1.List(cnt) cnt = cnt + 1 Next Error is: Run-time Error "438" Object doesn't support this Property and Method. Mybe Problem is Index Value of Both winsock1 and winsock2 controls. I want to First Port Number Open and Listen by winsock1(i) then second Port Number open and Listen by Winsock2(j). Please send me Reply soon Mohan :confused: Mohan Balal

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You didn't say what line the error occured on. But, I'll take a guess and say that .List() is not a member of List1. You don't say what List1 is so I really can't tell you what to do to correct it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups