ok i have vc++ and i am making a form app and i am putting a progress bar in it but how can i hide it for like x seconds.
is there a function for it?
or something which hides the object temporarily . Thanks

Recommended Answers

All 2 Replies

Hard to be specific as you don't say whether you are using .NET, MFC or the Windows Api.
You need to modify the Visibility style of the control to make it disappear/reappear. To make it temporary you will have to manage the delay yourself.

.Make control invisible
.Start timer
.Handle timeout event - make control visible

There is no single command to update the style temporarily.

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.