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. call the value from the console and paste it to windows froms.

call the value from the console and paste it to windows froms.

Scheduled Pinned Locked Moved C#
tutorialwinformshelpquestion
3 Posts 3 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.
  • T Offline
    T Offline
    tyrone0109
    wrote on last edited by
    #1

    hi, i got a problem here that is i have a program where is console. i want to call the value from the console and display into windows forms. for example in console have int i; ...... i = ..... then i want to get the value for i and display into text box in windows forms. like textbox1.text = ??????????? may i know how to make it. thanks.

    H Q 2 Replies Last reply
    0
    • T tyrone0109

      hi, i got a problem here that is i have a program where is console. i want to call the value from the console and display into windows forms. for example in console have int i; ...... i = ..... then i want to get the value for i and display into text box in windows forms. like textbox1.text = ??????????? may i know how to make it. thanks.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      tyrone0109 wrote:

      then i want to get the value for i

      How is the value for i put into the console?

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • T tyrone0109

        hi, i got a problem here that is i have a program where is console. i want to call the value from the console and display into windows forms. for example in console have int i; ...... i = ..... then i want to get the value for i and display into text box in windows forms. like textbox1.text = ??????????? may i know how to make it. thanks.

        Q Offline
        Q Offline
        quacks_a_lot
        wrote on last edited by
        #3

        In public static void Main(string[] args), use the parameter (args) Example: textbox.Text = args[0];

        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