向表单添加进度条

编程入门 行业动态 更新时间:2024-10-09 21:19:07
本文介绍了向表单添加进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 在数据库中插入数据时,我需要在表单中添加进度条-插入查询-我正在使用Visual Basic 2008 感谢

HI everybody I need to add a progress bar to my form while inserting a data in database-insert query- i am using visual basic 2008 thanks

推荐答案

您可以: 0)在表单上放置一个ProgressBar控件,并在不需要时将其隐藏 1)使用进度条创建一个新表单,并让该表单进行实际的数据库插入 2)创建一个无模式的进度条,只要数据库更新过程正在运行,该进度条就会显示. 3)将progressBar控件放入StatusStrip面板中,然后进行更新,而不是适当地填充表单. 我可能会选择#3,并使用一个线程来运行数据库更新过程.您的要求将决定您的决定. You can: 0) Put a ProgressBar control on the form and hide it when you don''t need it 1) Create a new form with the progressbar in it and have that form do the actual database insert 2) Create a modeless for with a progress bar that is displayed as long as the database updating process is running. 3) Put a progressBar control into a StatusStrip panel, and update that instead of pouluting the form proper. I would probably go with #3, and use a thread to run the database updating process. Your requirements will be what drives your decision.

您可以使用 You can use ProgressBar1.Value = [your desired value as you wish] ProgressBar1.Update()

为您提供解决方案. 谢谢.

For your solution. Thanks.

只需在此处[ ^ ] 并选择您的选择 玩得开心! Just Bing it here [^] and Pick out of your choice have Fun !

更多推荐

向表单添加进度条

本文发布于:2023-11-26 09:24:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633548.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   进度条

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!