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. C#
  4. input TextBox

input TextBox

Scheduled Pinned Locked Moved C#
tutorial
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.
  • S Offline
    S Offline
    sardonicus
    wrote on last edited by
    #1

    i got an application that contains a text box, i want to draw lines depending on the TextBox input. I know how to draw, but how could I make the drawings dependent on TextBox input. thnx in advance

    T 1 Reply Last reply
    0
    • S sardonicus

      i got an application that contains a text box, i want to draw lines depending on the TextBox input. I know how to draw, but how could I make the drawings dependent on TextBox input. thnx in advance

      T Offline
      T Offline
      turbochimp
      wrote on last edited by
      #2

      You could elect to only draw the lines after there was input from the user, and you could use the user's input to determine where to draw the line? Why not provide text boxes for start and end coordinates, and a button to initiate the drawing of a line. By pressing the button, the user would be indicating that they are satisfied with their origin/termination coordinates. The logic to draw the line would simply convert the text input from the user to integer values, and use those values when rendering the line.

      The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

      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