Rookie quesion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fishercraigj
    New Member
    • Jan 2010
    • 16

    Rookie quesion

    Ok, I'm new. Let's just put that out there. Using C#, I'm trying to do something that is probably pretty easy for all you out there.

    I've created new form and created both a listbox, lstBox1, and a button, btnProblem1. I want to click that button have "Hello world" show in the listbox. How do I do this?

    Thanks in advance,
    Craig
  • fishercraigj
    New Member
    • Jan 2010
    • 16

    #2
    ............... .....

    Comment

    • ThatThatGuy
      Recognized Expert Contributor
      • Jul 2009
      • 453

      #3
      on button click event do this
      Code:
      lstBox1.Items.Add("Hello world !!!");

      Comment

      • fishercraigj
        New Member
        • Jan 2010
        • 16

        #4
        Perfect, thanks! I appreciate the help.

        Comment

        • RedSon
          Recognized Expert Expert
          • Jan 2007
          • 4980

          #5
          You don't need to bump your question by posting garbage.

          Comment

          Working...