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!!!
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?
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
Re: c# windows for application-PLEASE HELLLLLPPPP!!!
What specifically do you need help with?
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.
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?
Re: c# windows for application-PLEASE HELLLLLPPPP!!!
my issue is how can I write this program using recursive method???
Re: c# windows for application-PLEASE HELLLLLPPPP!!!
Quote:
Originally Posted by
musademirtas
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?
Re: c# windows for application-PLEASE HELLLLLPPPP!!!
Post the code you have so far in the recursive method.