c# windows for application-PLEASE HELLLLLPPPP!!!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: c# windows for application-PLEASE HELLLLLPPPP!!!

  1. #1
    Join Date
    Jun 2013
    Posts
    8

    c# windows for application-PLEASE HELLLLLPPPP!!!

    I need help on making a windows form application with a numericupdown and listbox button on it. when I enter 2 in numericupdown button, it should write

    1,2

    2,1

    in listbox.

    or when I enter 3 in numericupdown, it should create

    1,2,3
    1,3,2
    2,1,3
    2,3,1
    3,1,2
    3,2,1

    it is like a binary tree, creating all possible options. please help!!!

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,973

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    What help are you looking for? Do you know how to create a new windows forms project in Visual Studio? Do you know how to add listbox and up/down controls to the form? Do you know how to wire up the up/down control change events? Are you having trouble with calculating the display values from the selected value?

  3. #3
    Join Date
    Jun 2013
    Posts
    8

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    Yes, I know how to create a windows form application and add buttons or numericupdown on it. I need help on when I click go button on the windows form it should take the number from numericupdown and calculate the values and add to listbox. for example, if I have 3 in numericupdown and if I click the go button it should create
    1
    1,2
    1,2,3
    1,3,2
    2
    2,1
    2,1,3
    2,3,1
    3
    3,1
    3,1,2
    3,2,1

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,973

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    What specifically do you need help with?

  5. #5
    Join Date
    Jun 2013
    Posts
    8

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    I have a windows form application and a "numericupdown", a "listbox", and a "go" button on it.
    When I have any number in numericupdown button and click go button, program should create all possible permutations of the number that I have in numericupdown button and show them in listbox.
    For instance, if I have 2 in numericupdown, I should have 1,2 and 2,1 in listbox, or if I have 3 in numericupdown, I should have
    1,2,3
    1,3,2
    2,1,3
    2,3,1
    3,1,2
    3,2,1

    in listbox. I need to write this program using RECURSION METHOD.

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,973

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    Yeah, I understand the problem from your first post, but you aren't saying what you need help with. Do you need help with the recursive method?

  7. #7
    Join Date
    Jun 2013
    Posts
    8

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    my issue is how can I write this program using recursive method???

  8. #8
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,973

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    Quote Originally Posted by musademirtas View Post
    my issue is how can I write this program using recursive method???
    Let's start with... do you understand recursion? Do you know how to write a recursive method?

  9. #9
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    10,973

    Re: c# windows for application-PLEASE HELLLLLPPPP!!!

    Post the code you have so far in the recursive method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center