本文介绍了向表单添加进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好 在数据库中插入数据时,我需要在表单中添加进度条-插入查询-我正在使用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 !
更多推荐
向表单添加进度条
发布评论