当前位置:编程学习 > VB >>

VB技术上的问题。

我想给老师弄一个教学平台,但我没VB代码知识,现在在学习中,首先我弄了一个登陆界面。问题,写什么代码能使密码部分显示*号,并且校对帐号和密码,正确后运行另一个.exe文件?
追问:???不明白
答案:
textbox有属性的passwordChar属性里面填*,校队账号和密码用判断就行!正确后不用运行另一个exe你直接画一个成功登陆的Form就行了!
'声明API函数
Private Declare Function GetPixel Lib "gdi32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function CreateDC Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, lpInitData As Any) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hDC As Long) As Long

Private Sub Command1_Click()
Dim hDC As Long
Dim rgb As Long
Dim r As Long
Dim g As Long
Dim b As Long
hDC = CreateDC("DISPLAY", 0

上一个:想学习编程。编病毒.....百度后才知道编汇语言最好.....那vb是吗?顺便推荐几款软件....没有恶意。对dos有研究
下一个:VB检测同名进程

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,