Datagrid Control for vb6程序中特定列的密码字符 [英] Password character for a particular column in Datagrid Control for vb6 program

查看:73
本文介绍了Datagrid Control for vb6程序中特定列的密码字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道是否可以屏蔽列数据以将其显示为密码字符,例如,询问"*"

我想使用datagrid控件显示用户名和密码表

但是datagrid控件直接显示密码,而不是屏蔽密码.所以我想掩盖密码字段.我正在用VB6编写程序.

谁能帮我做到这一点.

-
AJ

Hi
I was wondering if it is possible to mask a column data to show it as a password character such ask "*"

I want to display the username and password table using datagrid control

But the datagrid control shows the password directly instead of masking it. So I want to mask the password field. I am writing the program in VB6.

Can anyone please help me do this.

--
AJ

推荐答案

自从我从事VB6工作已经很久了,但我认为这是不可能的,因为VB6不允许自定义数据网格.
您可以做的是,隐藏密码列,并显示一个带有硬代码"****"的假密码列.
当用户编辑字段时,将值存储在数据库中,然后再次显示硬编码的"****".
Its been a long time since I worked on VB6 but I dont think that will be possible as VB6 doesnot allow datagrid customization.
What you can do is, hide the password column and show a fake password column with hard code "****".
When user edits the field, store the value enter in database and again show hard coded "****".


这篇关于Datagrid Control for vb6程序中特定列的密码字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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