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 6845107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:27:34+00:00 2026-05-27T00:27:34+00:00

Is it possible to animate ListView items in C# ? The purpose is that

  • 0

Is it possible to animate ListView items in C# ? The purpose is that I have a ListView that is asynchronously modified, and I’d like to animate smoothly the items that have been modified, until the user clicks them. This way items blinking, or whatever would do the trick, are the items that changed which haven’t been reviewed yet.

Thank you guys !

UPDATE : sorry, i forgot. Never used WPF before, and I think it’s too late to switch to it now. I’m using winforms.

  • 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-27T00:27:35+00:00Added an answer on May 27, 2026 at 12:27 am

    I had to do something similar to what you are trying to do but instead of animating the ListView, I used custom checkbox layout in the list view to look different. The designer code for the ListView looks like:

            this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listView1.Location = new System.Drawing.Point(104, 90);
            this.listView1.MultiSelect = false;
            this.listView1.Name = "listView1";
            this.listView1.Size = new System.Drawing.Size(264, 105);
            this.listView1.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.listView1.TabIndex = 7;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;
            this.listView1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.listView1_MouseClick);
    

    Then I declared a list that will hold the selection of the user.

        private IList<ListViewItem> m_CheckedItems = new List<ListViewItem>();
    

    Here is the initialise method for the ListView. You need to manipulate here for the initial look of your listview.

        private void InitialiseListView(IList<string> data)
        {
            listView1.Items.Clear();
            m_CheckedItems.Clear();
            listView1.Columns.Clear();
            listView1.Columns.Add("Col1");
            listView1.Columns[0].Width = listView1.Width;
            ListView.ListViewItemCollection collection = new ListView.ListViewItemCollection(listView1);
            ImageList images = new ImageList();
            images.Images.Add(global::MyApplication.Properties.Resources.Checkbox_Unchecked);
            images.Images.Add(global::MyApplication.Properties.Resources.Checkbox_Checked);
            listView1.SmallImageList = images;
            foreach (string str in data)
            {
                ListViewItem item = new ListViewItem();
                item.ImageIndex = 0;
                item.Text = str;
                collection.Add(item);
            }
        }
    

    This event triggers when the user selects an option in the list view. The selection is recorded in the list I created above and the checked image is displayed so that it looks like the user has selected the item.

        private void listView1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left && listView1.FocusedItem != null)
            {
                if (listView1.FocusedItem.ImageIndex == 1)
                {
                    listView1.FocusedItem.ImageIndex = 0;
                    m_CheckedItems.Remove(listView1.FocusedItem);
                }
                else
                {
                    listView1.FocusedItem.ImageIndex = 1;
                    m_CheckedItems.Add(listView1.FocusedItem);
                }
            }
        }
    

    You can probably fiddle with fonts and forecolor of these items … Each item within a List View is of type ListViewItem so you can individually manipulate it.

    Hope this gives you some direction 🙂

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

Sidebar

Related Questions

Is it possible to animate something that you have drawn using core graphics in
Is it possible to animate the change of a UIProgressView such that the display
Does any one know if its possible to animate app.current.mainwindow.width so that you get
Is it possible to smoothly animate a changed width property of CGContextFillRect over say
I have html input <input id=txtSearch value=Search... type=text/> Is it possible to animate the
I have like 10+ textview embedded in a scrollview to give a ListView effect(I
I have several CALayers that I'm trying to animate to a new zPosition with
I have a case where I'd like to animate the zoom style of a
Morning mr. Stackoverflow. Is it possible to .animate between 2 img ? Like, change
Is it possible to animate CSS pseudo-classes? Say I have: #foo:after { content: '';

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.