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. passing Value from one windows form to another

passing Value from one windows form to another

Scheduled Pinned Locked Moved C#
helpquestion
5 Posts 5 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.
  • A Offline
    A Offline
    A Grover
    wrote on last edited by
    #1

    hello all, i have two window forms. one is having button and second is having listbox on it.when i click on button i want some string value to be add in listbox which is on another form at run time. i have tried with following way. make the listbox control specifier as public make an object of the listbox control in button page e.g pg. pg.listbox1.items.add("hello"); on button click but items are not added into the listbox at runtime .plz help me out how can i solve this problem Amit Grover CDAC R&D Gist Group pune

    C T A A 4 Replies Last reply
    0
    • A A Grover

      hello all, i have two window forms. one is having button and second is having listbox on it.when i click on button i want some string value to be add in listbox which is on another form at run time. i have tried with following way. make the listbox control specifier as public make an object of the listbox control in button page e.g pg. pg.listbox1.items.add("hello"); on button click but items are not added into the listbox at runtime .plz help me out how can i solve this problem Amit Grover CDAC R&D Gist Group pune

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      There is an article on Passing values between forms[^] Does that help?


      My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious -- modified at 2:28 Thursday 15th December, 2005

      1 Reply Last reply
      0
      • A A Grover

        hello all, i have two window forms. one is having button and second is having listbox on it.when i click on button i want some string value to be add in listbox which is on another form at run time. i have tried with following way. make the listbox control specifier as public make an object of the listbox control in button page e.g pg. pg.listbox1.items.add("hello"); on button click but items are not added into the listbox at runtime .plz help me out how can i solve this problem Amit Grover CDAC R&D Gist Group pune

        T Offline
        T Offline
        tatchung
        wrote on last edited by
        #3

        Hi there have you tried SessionState? Aim small, miss small...

        1 Reply Last reply
        0
        • A A Grover

          hello all, i have two window forms. one is having button and second is having listbox on it.when i click on button i want some string value to be add in listbox which is on another form at run time. i have tried with following way. make the listbox control specifier as public make an object of the listbox control in button page e.g pg. pg.listbox1.items.add("hello"); on button click but items are not added into the listbox at runtime .plz help me out how can i solve this problem Amit Grover CDAC R&D Gist Group pune

          A Offline
          A Offline
          Anbuselvan
          wrote on last edited by
          #4

          Hi, If you are using McAfee anti virus scanner, do the following: 1. Right click the McAfee task bar icon and open "VirusScan Console" window. 2. From VirusScan console window righ click the "Buffer Overflow Protection" option and disable it. 3. Run your application again. Happy Programming!!! :) Regards, P.Anbuselvan Sr.Software Engineer Hyderabad

          1 Reply Last reply
          0
          • A A Grover

            hello all, i have two window forms. one is having button and second is having listbox on it.when i click on button i want some string value to be add in listbox which is on another form at run time. i have tried with following way. make the listbox control specifier as public make an object of the listbox control in button page e.g pg. pg.listbox1.items.add("hello"); on button click but items are not added into the listbox at runtime .plz help me out how can i solve this problem Amit Grover CDAC R&D Gist Group pune

            A Offline
            A Offline
            albCode
            wrote on last edited by
            #5

            Follow this link http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=32810

            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