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
  1. Home
  2. General Programming
  3. Visual Basic
  4. where is the winsock control

where is the winsock control

Scheduled Pinned Locked Moved Visual Basic
sysadminalgorithmshelpquestion
6 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.
  • G Offline
    G Offline
    GaryKoh
    wrote on last edited by
    #1

    hello i need your help. the text below i get from the msdn website Change the caption of the form to "TCP Server." Draw a Winsock control on the form and change its name to tcpServer. Add two TextBox controls to the form. Name the first txtSendData, and the second txtOutput. im not sure where to draw a winsock control as mention above i try searching the toolbox but nothing is found can you please tell me where can i get it? do i need to select or enable anything to get the control? thank you in advance Gary

    D 1 Reply Last reply
    0
    • G GaryKoh

      hello i need your help. the text below i get from the msdn website Change the caption of the form to "TCP Server." Draw a Winsock control on the form and change its name to tcpServer. Add two TextBox controls to the form. Name the first txtSendData, and the second txtOutput. im not sure where to draw a winsock control as mention above i try searching the toolbox but nothing is found can you please tell me where can i get it? do i need to select or enable anything to get the control? thank you in advance Gary

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

      I take it your using VB6... You have to add the Winsock control to the Toolbox. Right click anywhere in the grey area of the toolbox and select Add Components. Scroll down the list that comes up and click on the check box next to "Microsoft Winsock Control", I think(!), I can't remember the exact name. If you can't find the name, Browse for the file "Mswinsck.ocx" and add that instead. The control came with the Professional and Enterprise versions of Visual Studio 6.0 or Visual Basic 6.0. It does NOT come with the Learning Editions. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        I take it your using VB6... You have to add the Winsock control to the Toolbox. Right click anywhere in the grey area of the toolbox and select Add Components. Scroll down the list that comes up and click on the check box next to "Microsoft Winsock Control", I think(!), I can't remember the exact name. If you can't find the name, Browse for the file "Mswinsck.ocx" and add that instead. The control came with the Professional and Enterprise versions of Visual Studio 6.0 or Visual Basic 6.0. It does NOT come with the Learning Editions. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        G Offline
        G Offline
        GaryKoh
        wrote on last edited by
        #3

        hello im sorry but im actually using vb.net im kinda noob when my elder brother is not around to help me so i use this forum that my brother usually use to find the answer i need please help me thank you Gary

        D 1 Reply Last reply
        0
        • G GaryKoh

          hello im sorry but im actually using vb.net im kinda noob when my elder brother is not around to help me so i use this forum that my brother usually use to find the answer i need please help me thank you Gary

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

          If your using VB.NET, you don't have the Winsock Control. The example your looking at is for VB6. VB.NET uses the System.Net.Sockets namespace to do everything that the Winsock control did in VB6. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          G 1 Reply Last reply
          0
          • D Dave Kreskowiak

            If your using VB.NET, you don't have the Winsock Control. The example your looking at is for VB6. VB.NET uses the System.Net.Sockets namespace to do everything that the Winsock control did in VB6. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            G Offline
            G Offline
            GaryKoh
            wrote on last edited by
            #5

            this means that this winsock is done just by pure coding? can you please give me a small coding example or a link to a place where i can refer so that i can understand more clearly thank you Dave Gary

            D 1 Reply Last reply
            0
            • G GaryKoh

              this means that this winsock is done just by pure coding? can you please give me a small coding example or a link to a place where i can refer so that i can understand more clearly thank you Dave Gary

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

              You can search the articles on CodeProject for "sockets" and you'll come up with a bunch of 'em. There aren't any written in VB.NET, but there are in C#. You can convert the code to VB.NET pretty easily. You can start with Asynchronous socket communication [^] 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