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. Accepting user input

Accepting user input

Scheduled Pinned Locked Moved C#
csharphelpquestion
31 Posts 12 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.
  • L Lost User

    Pete O'Hanlon wrote:

    Code to write the file out. Now, buy a book and find out what that code is.

    Hi Pete, Why do you think like that? I searched for the above matter in Google and MSDN. I indeed found million results, but all based upon console application. I ain't a dumb. I remember what I said, "You should have searched google before posting here", and I did and it resulted in futile. Now thats the reason for asking you guys. Hope you understand me, Rajdeep.NET :sigh:

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #17

    Rajdeep.NET wrote:

    Why do you think like that? I

    I think like this because there are times when Google is sufficient, but if you haven't got the basics down then it ain't going to help. That's where a book will help - it will guide you through from the simplest tasks (assuming it's a good book).

    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

    My blog | My articles | MoXAML PowerToys | Onyx

    N 1 Reply Last reply
    0
    • L Lost User

      Tom Deketelaere wrote:

      How about you actually trying the code you found, and do some work of your own.

      Ok, thanks.

      T Offline
      T Offline
      tom572007
      wrote on last edited by
      #18

      It's time to start working dude

      1 Reply Last reply
      0
      • L Lost User

        Hi friends, I've a WinForm consisting of a TextBox and a button. Now, I want that, whenever user enters any text in the text box and clicks the button, the entered text be saved in a precreated text file. What code should I implement in the Button_Click event handler in order to do so? Help appreciated, Rajdeep.NET :-D

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #19

        It's to early in the morning to be sarcastic, it's especially to early to read your stupidity.

        Check out the CodeProject forum Guidelines[^]

        1 Reply Last reply
        0
        • P Pete OHanlon

          Rajdeep.NET wrote:

          Why do you think like that? I

          I think like this because there are times when Google is sufficient, but if you haven't got the basics down then it ain't going to help. That's where a book will help - it will guide you through from the simplest tasks (assuming it's a good book).

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          N Offline
          N Offline
          Nagy Vilmos
          wrote on last edited by
          #20

          Pete O'Hanlon wrote:

          it will guide you through from the simplest tasks (assuming you can read).

          fixed it. :laugh:


          Panic, Chaos, Destruction. My work here is done.

          1 Reply Last reply
          0
          • L Lost User

            OriginalGriff wrote:

            I was just this minute wondering where Rajdeep.NETs' Stupid Question Of The Day was, and lo! You write it! Thanks

            :sigh: Why do you think so Griff??!! If you think that what I asked was really that stupid to be termed as the day's most stupid question, then just post the code here and I would appreciate you as a genius. Otherwise, just commenting on my posts, makes you the same as I am. So???..... Rajdeep.NET ;P

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #21

            If you think I said it was "the day's most stupid question" then you also need to learn to read. For a "programmer" who intends to sell his code (cf. your previous R.NsSQOTD posts) you ask the basic questions that even a 1st year CS student learns in the first week of a C# course. I do not want, desire, or need you to appreciate me, as a genius or otherwise. I do however reserve the right to reply in any manner I see fit (within the constraints of the forum) to someone who is: 1) Trying to pass himself off as something he clearly isn't. 2) Trying to get others to do his work for him, without payment. 3) Trying to use our intectual properties for his commercial gain. 4) Wasting the time of unpaid professionals who are helping others out of the goodness of their hearts. 5) Incapable of refining a Google search (many of my initial searches give thousands, or millions of results) 6) Being rude to others, for doing exactly what he is doing, and thus hypocritical. and last but not least 7) Being a complete f****** d*******, with niether b**** or a c*** (except on his f*******). Now, do you fit in any of those categories? No - you fit in them all. [edit] P.s. Before you ask, I have nothing against ignorance, it can be cured by education. Stupidity on the other hand... [/edit]

            No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            N B 2 Replies Last reply
            0
            • P Pete OHanlon

              Rajdeep.NET wrote:

              What code should I implement in the Button_Click event handler in order to do so?

              Code to write the file out. Now, buy a book and find out what that code is. I can't believe that you've posted questions about how to sell your software when this limping pile of scrodspittle is the level of competence you are currently at. Do yourself a favour - buy some books; then read them.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #22

              Pete O'Hanlon wrote:

              this limping pile of scrodspittle is ...

              it is getting all to high-brow for me now, even Google[^] doesn't help any more. ;)

              Luc Pattyn [Forum Guidelines] [My Articles]


              The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


              P 1 Reply Last reply
              0
              • L Lost User

                Dave Kreskowiak wrote:

                We don't get paid to write the code for you so you can copy'n'paste it into your own code and take credit for it

                Alright Mr. Dave Kreskowiak, as you wish. You also have a point. Finally, I discovered that I am the most idiot //programmer (calling myself a programmer will be wrong) codeproject ever had in its forums. I'll make sure I learn the basics first. Thanks for all your advice. Rajdeep.NET (starving to be a developer) :doh:

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #23

                Rajdeep.NET wrote:

                I discovered that I am the most idiot //programmer (calling myself a programmer will be wrong) codeproject ever had in its forums.

                Not even close. There have people around here who couldn't find the power switch to turn the machine on! There are a certain set of minimum skills you need to be a developer/programmer/whatever. You need the ability to do research and the ability to try things out (explore). These two things are the basis of the scientific method, or learning what you don't know in a structured manner. Without this, you don't have a prayer of becomming a decent programmer.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  If you think I said it was "the day's most stupid question" then you also need to learn to read. For a "programmer" who intends to sell his code (cf. your previous R.NsSQOTD posts) you ask the basic questions that even a 1st year CS student learns in the first week of a C# course. I do not want, desire, or need you to appreciate me, as a genius or otherwise. I do however reserve the right to reply in any manner I see fit (within the constraints of the forum) to someone who is: 1) Trying to pass himself off as something he clearly isn't. 2) Trying to get others to do his work for him, without payment. 3) Trying to use our intectual properties for his commercial gain. 4) Wasting the time of unpaid professionals who are helping others out of the goodness of their hearts. 5) Incapable of refining a Google search (many of my initial searches give thousands, or millions of results) 6) Being rude to others, for doing exactly what he is doing, and thus hypocritical. and last but not least 7) Being a complete f****** d*******, with niether b**** or a c*** (except on his f*******). Now, do you fit in any of those categories? No - you fit in them all. [edit] P.s. Before you ask, I have nothing against ignorance, it can be cured by education. Stupidity on the other hand... [/edit]

                  No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                  N Offline
                  N Offline
                  Nagy Vilmos
                  wrote on last edited by
                  #24

                  Step away from the keyboard sir. [That is class 1 diatribe, well done. Have an OBE]


                  Panic, Chaos, Destruction. My work here is done.

                  1 Reply Last reply
                  0
                  • L Luc Pattyn

                    Pete O'Hanlon wrote:

                    this limping pile of scrodspittle is ...

                    it is getting all to high-brow for me now, even Google[^] doesn't help any more. ;)

                    Luc Pattyn [Forum Guidelines] [My Articles]


                    The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #25

                    It's 100% Pete. I doubt you'll find it anywhere else.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                    My blog | My articles | MoXAML PowerToys | Onyx

                    V F 2 Replies Last reply
                    0
                    • P Pete OHanlon

                      It's 100% Pete. I doubt you'll find it anywhere else.

                      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                      My blog | My articles | MoXAML PowerToys | Onyx

                      V Offline
                      V Offline
                      Vasudevan Deepak Kumar
                      wrote on last edited by
                      #26

                      Pete O'Hanlon wrote:

                      It's 100% Pete.

                      Patented by Pete. ™ :) (I voted a 5 for it)

                      Vasudevan Deepak Kumar Personal Homepage
                      Tech Gossips
                      The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                      1 Reply Last reply
                      0
                      • P Pete OHanlon

                        Rajdeep.NET wrote:

                        What code should I implement in the Button_Click event handler in order to do so?

                        Code to write the file out. Now, buy a book and find out what that code is. I can't believe that you've posted questions about how to sell your software when this limping pile of scrodspittle is the level of competence you are currently at. Do yourself a favour - buy some books; then read them.

                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                        My blog | My articles | MoXAML PowerToys | Onyx

                        V Offline
                        V Offline
                        Vasudevan Deepak Kumar
                        wrote on last edited by
                        #27

                        Pete O'Hanlon wrote:

                        find out what that code is

                        His next q would be 'Where is the code in the book?' and he might write that to the author too. Poor author!

                        Vasudevan Deepak Kumar Personal Homepage
                        Tech Gossips
                        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                        P 1 Reply Last reply
                        0
                        • P Pete OHanlon

                          It's 100% Pete. I doubt you'll find it anywhere else.

                          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                          My blog | My articles | MoXAML PowerToys | Onyx

                          F Offline
                          F Offline
                          fly904
                          wrote on last edited by
                          #28

                          The Urban Dictionary[^] is beckoning.

                          My failometer is detecting vast quantities of FAIL! "Its SQL - hardly programming..." (Caslen)

                          1 Reply Last reply
                          0
                          • L Lost User

                            Hi friends, I've a WinForm consisting of a TextBox and a button. Now, I want that, whenever user enters any text in the text box and clicks the button, the entered text be saved in a precreated text file. What code should I implement in the Button_Click event handler in order to do so? Help appreciated, Rajdeep.NET :-D

                            V Offline
                            V Offline
                            Vasudevan Deepak Kumar
                            wrote on last edited by
                            #29

                            Rajdeep.NET wrote:

                            What code should I implement in the Button_Click event handler in order to do so?

                            MessageBox.Show("Bye. See You");
                            Application.Exit();

                            That would be the best code you can write and the most best help that you can offer your users without tormenting them through the numerous coding horrors that I could speculate from you.

                            Vasudevan Deepak Kumar Personal Homepage
                            Tech Gossips
                            The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                            1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              If you think I said it was "the day's most stupid question" then you also need to learn to read. For a "programmer" who intends to sell his code (cf. your previous R.NsSQOTD posts) you ask the basic questions that even a 1st year CS student learns in the first week of a C# course. I do not want, desire, or need you to appreciate me, as a genius or otherwise. I do however reserve the right to reply in any manner I see fit (within the constraints of the forum) to someone who is: 1) Trying to pass himself off as something he clearly isn't. 2) Trying to get others to do his work for him, without payment. 3) Trying to use our intectual properties for his commercial gain. 4) Wasting the time of unpaid professionals who are helping others out of the goodness of their hearts. 5) Incapable of refining a Google search (many of my initial searches give thousands, or millions of results) 6) Being rude to others, for doing exactly what he is doing, and thus hypocritical. and last but not least 7) Being a complete f****** d*******, with niether b**** or a c*** (except on his f*******). Now, do you fit in any of those categories? No - you fit in them all. [edit] P.s. Before you ask, I have nothing against ignorance, it can be cured by education. Stupidity on the other hand... [/edit]

                              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

                              B Offline
                              B Offline
                              Baeltazor
                              wrote on last edited by
                              #30

                              Agreed.

                              1 Reply Last reply
                              0
                              • V Vasudevan Deepak Kumar

                                Pete O'Hanlon wrote:

                                find out what that code is

                                His next q would be 'Where is the code in the book?' and he might write that to the author too. Poor author!

                                Vasudevan Deepak Kumar Personal Homepage
                                Tech Gossips
                                The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                                P Offline
                                P Offline
                                Pete OHanlon
                                wrote on last edited by
                                #31

                                :laugh:

                                Deja View - the feeling that you've seen this post before.

                                My blog | My articles

                                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