Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6874329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:10:52+00:00 2026-05-27T04:10:52+00:00

I’ve currently got two lists I’m working with. One filled with items and the

  • 0

I’ve currently got two lists I’m working with. One filled with items and the other one is empty. When the user double-clicks an item in the filled list it’s supposed to add that item to the empty/second list, but instead of adding it to the top of that list I want the newly added item at the bottom. So the items should be added from the bottom up.
I’m working with a datagridview, but am willing to use listview/listbox as long as it gets the job done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:10:52+00:00Added an answer on May 27, 2026 at 4:10 am

    I added two list boxes to a windows form. listBox1 and listBox2
    I added Seven Items to the first list box {One,Two,Three…}
    I added the double click event handler where I

      listBox2.Items.Add(listBox1.SelectedItem);
    

    The new Item added to the bottom of the list, which is what it sounds like you want. I know the same thing works with a DataGridView.

    Do you want them to be added physically to the bottom of the box leaving whitespace at the top until it is filled? Is that what you are trying to do?

    Sorry this isn’t really an answer, I guess I don’t have enough rep to reply as a comment.


    EDIT:
    ok I think I have your answer now
    Add a list box with your items, it doesn’t have to be a list box your Datagridview would work fine.

    Try using a FlowControlPanel and change alignment to bottom up, sounds easy, well it is.
    Add labels to it, like this

    //add a label to the flow control panel when you double click on an item
    private void listBox1_DoubleClick(object sender, EventArgs e)
        {
            Label label = new Label();
            label.Text = listBox1.SelectedItem.ToString();
            label.Click += new EventHandler(label_Click);
            label.AutoSize = true;
            flowLayoutPanel1.Controls.Add(label);
            label.BringToFront();
        }
        //Will remove the label if you click on it.
        void label_Click(object sender, EventArgs e)
        {
            ((Label)sender).Click -= new EventHandler(label_Click);
            ((Label)sender).Dispose();
        }
    

    brining the label to the front puts the new one at the bottom.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I am currently running into a problem where an element is coming back from
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
i got an object with contents of html markup in it, for example: string
I am reading a book about Javascript and jQuery and using one of the
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.