Results 1 to 12 of 12

Thread: [RESOLVED] Wait cursor in a listview

  1. #1

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Resolved [RESOLVED] Wait cursor in a listview

    I was thinking how can i add a wait cursor to my listview box.
    I want the wait cursor to only appear at the top left side of listview box.
    Thank you in advance.
    Last edited by Pc_Not_Mac; Mar 17th, 2010 at 04:55 PM.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    Could you monitor the Mouse's position (for the top left) in the LV and if the LV is loading display the wait cursor?

  3. #3

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Wait cursor in a listview

    Thank you for the reply Bruce Fox.
    But i was thinking of have a button that will start the cursor.
    For example the user clicks start the wait cursor appears at the top left of the listview Box.
    And when the task is finished the wait cursor disappears.
    Thank you in advance.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    So do you want to 'fix' the position of the wait cursor for that period?

  5. #5

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Wait cursor in a listview

    Yes, but i do want the user to interact with the application when that wait cursor appears.
    Thank you in advance.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  6. #6
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    Note: I posted this as you posted your previous post.

    Instead of (potentially) fixing the cursor, could I suggest an over-layed 'Loading' GIF in the middle of the LV.
    The GIF would be displayed for the period, and then removed once loaded, this method is know to most users, and would be ascetically pleasing too
    Last edited by Bruce Fox; Mar 17th, 2010 at 05:32 PM. Reason: See Note: above.

  7. #7
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    Quote Originally Posted by Pc_Not_Mac View Post
    Yes, but i do want the user to interact with the application when that wait cursor appears.
    Well, post #6 is probably the way to go....

  8. #8

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Wait cursor in a listview

    Would i have to make a gif or its available online?
    Thank you in advance.
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  9. #9
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    Here is a great place to start.

    Once you created it, load it into a PictureBox, and show hide as required.

  10. #10
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Wait cursor in a listview

    A few examples (attached).
    Attached Images Attached Images   

  11. #11

    Thread Starter
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Wait cursor in a listview

    Thanks Bruce Fox.
    I see how this works
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  12. #12
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: [RESOLVED] Wait cursor in a listview

    No problem. I'm sure you will find it a better solution.
    Good luck with your project.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width