By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,570 Members | 970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,570 IT Pros & Developers. It's quick & easy.

Show and image when button its clicked

P: n/a
Hi to all,
I have a textbox and a button...

When the button its clicked i show a label that has the text "Hello World"...

I would like to make that, when the button its clicked, first show an
animated image (loading...), and some seconds after, show the Hello World
label

How could i make that the current thread Sleep for some seconds?

Its that the correct way?

--
Thanks
Regards.
Josema
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Josema,

I do not know a better way, assuming you are using a picturebox for your
animated image

System.Threading.Thread.Sleep(1000);
1000 is one second

I hope this helps?

Cor

"Josema" <Je******@ocu.org>
Hi to all,
I have a textbox and a button...

When the button its clicked i show a label that has the text "Hello
World"...

I would like to make that, when the button its clicked, first show an
animated image (loading...), and some seconds after, show the Hello World
label

How could i make that the current thread Sleep for some seconds?

Its that the correct way?

--
Thanks
Regards.
Josema

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.