How can I make an endless progressbar in WinForms?

后端 未结 6 1984
独厮守ぢ
独厮守ぢ 2020-12-05 21:11

I don\'t know how long an action could take and I want to display a progress bar to the user in a dialog box. I\'ve tried using System.Windows.Forms.ProgressBar but it doesn

6条回答
  •  攒了一身酷
    2020-12-05 21:36

    Have you tried setting the Style property of the System.Windows.Forms.ProgressBar to Marquee?

    However, surprisingly, this property is only available on the following platforms (according to MSDN):

    Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003

    Might be that the documentation has not been updated to Vista though. Anyone knows about a limitation on Vista?

    EDIT: As posted in another comment the documentation seems to be wrong with respect to the supported platforms. Should be working on Vista as well as Windows 7.

提交回复
热议问题