I have windows form application written in c#. In this i have statusscript with a label and progressbar. When my code enters recurscive code, i get multiple instances of progressbar. I am using marquee style for progressbar.
Progressbar.Visible = true;
Progressbar.Style = ProgressBarStyle.Marquee

#Do something        

Progressbar.visible=false

We need to see the recursive function and code where the function is called. I strongly suspect, though, that you're declaring a new progressbar each time the function runs. You should probably declare the progressbar at class level and just update/increment whenever the function runs.

That you dont have any loop around the code which shows the progressBar?
Or maybe you call the method multiple times?
Please double check it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.