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. Emergency Question pls reply me and help me everyone!!

Emergency Question pls reply me and help me everyone!!

Scheduled Pinned Locked Moved Visual Basic
helpquestion
5 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
    maxiachun
    wrote on last edited by
    #1

    Hi, everyone! is that possible to do if you put something into a textbox then after you press enter you can send a http request with the value in the textbox and run the web service. pls reply me and help me everyone!! I am Entry level person

    C 1 Reply Last reply
    0
    • M maxiachun

      Hi, everyone! is that possible to do if you put something into a textbox then after you press enter you can send a http request with the value in the textbox and run the web service. pls reply me and help me everyone!! I am Entry level person

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Sure - just handle the key press event. Private Sub KeyUp(ByVal sender As Object, ByVal ea As KeyEventArgs) Handles TextBox1.KeyUp If ea.KeyCode = Keys.Return Then Dim tb as TextBox = sender MyHTTPFunction(tb.Text) End If End Sub Christian Graus - Microsoft MVP - C++

      M 1 Reply Last reply
      0
      • C Christian Graus

        Sure - just handle the key press event. Private Sub KeyUp(ByVal sender As Object, ByVal ea As KeyEventArgs) Handles TextBox1.KeyUp If ea.KeyCode = Keys.Return Then Dim tb as TextBox = sender MyHTTPFunction(tb.Text) End If End Sub Christian Graus - Microsoft MVP - C++

        M Offline
        M Offline
        maxiachun
        wrote on last edited by
        #3

        the problem is what is that myhttpfunction, how to send a http request?? I am Entry level person

        C 1 Reply Last reply
        0
        • M maxiachun

          the problem is what is that myhttpfunction, how to send a http request?? I am Entry level person

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Oh, OK. You import the web service into your project, right click on the project and choose add web reference. When you do this, you get a class auto generated, and you can just call it's methods to call the web service. Christian Graus - Microsoft MVP - C++

          M 1 Reply Last reply
          0
          • C Christian Graus

            Oh, OK. You import the web service into your project, right click on the project and choose add web reference. When you do this, you get a class auto generated, and you can just call it's methods to call the web service. Christian Graus - Microsoft MVP - C++

            M Offline
            M Offline
            maxiachun
            wrote on last edited by
            #5

            I complete it! thx! i will treat you a big meal then! I am Entry level person

            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