带有动画的随机名称 [英] random name with animation

查看:103
本文介绍了带有动画的随机名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
有人可以建议我如何从vb.net中的列表生成随机名称吗?

我只想从列表中获得一个,只要我们单击命令按钮,就会生成一个随机名称.但是要在命令按钮的单击和输出之间添加悬念,我想拨出一些简单的动画,例如表单,然后从5 4 3 2 1 ....开始计数,幸运的人是(姓名)."



plz建议
感谢

hello guys
can anybody suggest me how generate a random name from a list in vb.net

all i want that from a list, a random name is generated whenever we click on command button. but to add suspense between the click of command button and the output i want some simple animation like a form is poke up and "count from 5 4 3 2 1.... and the lucky person is (Name). "



plz advise
thanks

推荐答案

看起来很简单...您尝试了什么?将其分为两部分:
1.生成随机数(例如说0到100之间)(100是列表大小).根据数字,从该索引中选择名称.
2.显示动画,进度条或具有1 2 3 4 5 ...或您选择的UI的进度条. (您可以在itslef的动画进度栏上找到很多文章)

立即尝试!
Looks simple... what have you tried? Break it into two parts:
1. Generating random number (lets say between 0 to 100) (100 being the list size). Based on the number, pick the name from that index.
2. Show an animation, some progress bar or so that has 1 2 3 4 5... or a UI of your choice. (You can get lots of articles on animated progress bar here itslef)

Try now!


这篇关于带有动画的随机名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆