Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Working on Microsoft word 2010 Add-In. When Required button is clicked it takes quite long time to complete. i want to add a progress bar while the process completes so that user is made aware that particular instance is working.

wrote following code but progress bar does not appears. please guide how to achieve that.

[code]

VB
Dim myProgressBar As ProgressBar = Nothing
myProgressBar = New ProgressBar
myProgressBar.Minimum = 0
myProgressBar.Maximum = 100
myProgressBar.Visible = True
myProgressBar.PerformStep()



/[code]
Posted
Updated 18-Nov-14 1:48am
v2

1 solution

Just creating an instance of a control does not show it on screen.

You created an instance of the control, but never added it to a forms Controls collection, so there's nothing to show. You also never set the Location of the control on the form.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900