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. Grab Value from text box

Grab Value from text box

Scheduled Pinned Locked Moved C#
tutorial
5 Posts 4 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
    sajid salim khan
    wrote on last edited by
    #1

    :rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas

    C N 2 Replies Last reply
    0
    • S sajid salim khan

      :rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas

      C Offline
      C Offline
      chravisankar
      wrote on last edited by
      #2

      create a new form as a dialog and grab its text

      "Change is the only constant thing in life Either or survive or get extinct"

      S 1 Reply Last reply
      0
      • C chravisankar

        create a new form as a dialog and grab its text

        "Change is the only constant thing in life Either or survive or get extinct"

        S Offline
        S Offline
        sajid salim khan
        wrote on last edited by
        #3

        This is not enough i know how to do that but how to assign the textfron text box

        Q 1 Reply Last reply
        0
        • S sajid salim khan

          This is not enough i know how to do that but how to assign the textfron text box

          Q Offline
          Q Offline
          quiteSmart
          wrote on last edited by
          #4

          send it back to main form through a public function or something like that

          1 Reply Last reply
          0
          • S sajid salim khan

            :rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas

            N Offline
            N Offline
            nmason
            wrote on last edited by
            #5

            It goes something like this.. public class EditBox : System.Windows.Forms.Form { private Button isOK; public TextBox aField; ... code here for the EditBox } public class MainApp { string TextfromUser; private DoSomething() { EditBox eb = new EditBox(); if (eb.ShowDialog() == DialogResult.OK) { TextfromUser = eb.aField.Text; } ... do something with text from the user } }

            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