locked
How to apply the animation style to smooth listbox in windows mobile 6.0? RRS feed

  • Question

  • Hi,

    i want to add newly posted messages like twitter in my application.i.e the newly posted messages are automatically added at top of itemspanel and the old messages are moving down like that i want to display the messages.

    pls tell me how to show newly posted messages for every 10sec  in smoothlistbox.

     

    Tuesday, May 17, 2011 10:13 AM

Answers

All replies

  • Hi ,

    pls tell me how to insert new record  to smooth listbox control in windows mobile 6.0 using c#.and how to apply animated styles to smooth listbox ?

    pls give me any samples on that control?

     

    • Merged by Jesse Jiang Thursday, May 26, 2011 7:03 AM same question
    Wednesday, May 18, 2011 4:05 AM
  • Hi,

    refer below samples for your requirements.

    http://www.resco.net/developer/support/samples_advancedlist.aspx

    Hope it helps.


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    • Marked as answer by Jesse Jiang Tuesday, June 7, 2011 1:23 AM
    Wednesday, May 18, 2011 7:30 AM
  • Hello,

     

    Welcome to the MSDN forum.

     

    I just found a sample code of smooth listbox in C#.

     

    Implementing a smoothly animated ListBox

     

    You can call AddItem function to add new message every 1 minute or shorter.

     

    I hope my suggestions can help you to solve this problem.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, May 19, 2011 5:58 AM
  • Hi,

     

    thanks for ur reply.i tried but i didn't get.

     SmoothListbox s = new SmoothListbox();

     

                ds = objService.GenericWebMethod(GetStandardInput(), "GetNewMessage", messages);

                if (Convert.ToInt32(ds.Tables[0].Rows[0][0]) != 0)

                {

                    for (int i = 0; i < Convert.ToInt32(ds.Tables[0].Rows.Count); i++)

                    {

     

                        s.AddItem(new Album(

                          ds.Tables[0].Rows[i][5].ToString(), ds.Tables[0].Rows[i][2].ToString(), ds.Tables[0].Rows[i][6].ToString()));

     

                        s.Visible = true;

                        s.Dock = DockStyle.Fill;

                        s.BackColor = Color.Black;

                        this.Controls.Add(s);

                    }

                }

     

    in that dataset i got newly posted messages .then i directly calling the additem function no use.

     

           public void AddItem(Control control)

            {

                if (!itemsPanel.Controls.Contains(control))

                {

                    itemsPanel.Controls.Add(control);

     

                    selectedItemsMap.Add(control, false);

     

                    LayoutItems();

     

                    if (control is IExtendedListItem)

                        ((IExtendedListItem)control).PositionChanged(itemsPanel.Controls.Count);

     

                    Utils.SetHandlers(this, mouseDownEventHandler, mouseUpEventHandler, mouseMoveEventHandler);

                }

                else

                {

                    throw new ArgumentException("Each item in SmoothListbox must be a unique Control", "control");

                }

            }

     

    i want to add newly posted messages at top and moving down the previously posted messges for every 10 sec.

    pls tell me clearly .

    Thursday, May 19, 2011 10:25 AM
  • hi Dev

     

     can't we apply animation style to smooth listbox in windows mobile 6.0 like twitter newly posted messages are displaying  at top and previous one's are moving down like that.?

     

    i am using smooth list box for that functionality.

    can u pls how to insert new record at top of itemspanel in smooth listbox.

     

     

     


    Thursday, May 19, 2011 10:30 AM
  • Hello,

     

    Did you solve your problem?

    If so please share the solution with us and mark the right answers.

    If not please let me know and I will tray to help you find further solutions.

     

    Have a nice day!

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 25, 2011 8:16 AM
  • Hi Venkateswara,

    Pleae try this both links:

    http://blog.wmdev.net/

    http://www.codeproject.com/KB/list/SmoothListBox.aspx

     

    you just need to customize as per requirement. In your case you just need refresh the page and has to show the new message at top.

     

     


    Regards, Malleswar
    • Marked as answer by Jesse Jiang Tuesday, May 31, 2011 8:15 AM
    Wednesday, May 25, 2011 2:47 PM