如何将用户名从数据库绑定到lable并在按钮单击时逐个显示? [英] how can I bind usernames from database to lable and display one by one on button click?

查看:79
本文介绍了如何将用户名从数据库绑定到lable并在按钮单击时逐个显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB.Net Ms Access数据库



或者只是在点击按钮时将用户名从数据库逐个显示到表中?

VB.Net Ms Access Database

Or just display usernames from database to a table one by one on button click?

推荐答案

您好,将用户名从数据库加载到数据表中。定义一个整数变量(从零开始)以保持按钮点击的计数。当第一个按钮点击时,count变量的值为0,通过使用它只打印或显示表中的用户名by count变量作为索引,只需将计数变量增加+1,当第二次单击时,它将打印第二个用户名,重复此操作直到表格结尾。
Hi, Load usernames to a datatable from database. Define an integer variable(starting from zero) to keep count of button click. When first button click, the value of count variable is 0, by using this just print or display the username from the table by count variable as index, and just increase the count variable by +1, When second click, it will prints the second username, repeat this until the end of the table.


这篇关于如何将用户名从数据库绑定到lable并在按钮单击时逐个显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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