简体   繁体   中英

Progress dialog box in VB.NET?

I'm trying to make a simple Windows form app that does things. I'd like a box to show the progress of each step as it's doing these things. Sort of like a console output, except not on the console, but in a display box that is non-interactive to the user. What thing in the VB.NET toolbox do I use?

也许您想使用一个简单的TextBox并将其设置为ReadOnly

If you are trying to set the text property of the TextBox just use something like Me.TextBox1.text = "Text here" . And TextBox1 refers to the name property which you can set in the properties window of Visual Studio.

If you would like to do it under a progressBar its a little more involved with how you want to progress it. After you drop it on the form though you can set the name property of the progressBar then in your code behind do Me.ProgressBar1.Value = x . Where ProgressBar1 is the Name property again and x is a integer representing the value to set the progressBar to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM