Hello community, I'm trying to create a form with the sort methods (Bubblesort and shell). The Sort algorithms work fine but my problem is that I want to specify the length of the array and add the values. For this I have 2 textbox and a button (insert), the first one is for the length and the second textbox is where you type the value. When you push the insert button the value in textbox2 will be inserted in the array. I can insert values into an array but where I'm having trouble is in the button. How can I call the button1_Click function in another function(void insert) and put in in a for?
Thank you.
mabshell 0 Newbie Poster
mabshell 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Geekitygeek 480 Nearly a Posting Virtuoso
ddanbe commented: Well explained! :) +7
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.