查看: 1332|回复: 2
|
Scroll Bar 如何自动向下移 和 VB to VB.NET conversion?
[复制链接]
|
|
请问 Scroll Bar 如何自动向下移?
(用在 VB。NET 2005)

[ 本帖最后由 heng81 于 22-4-2006 01:04 AM 编辑 ] |
|
|
|
|
|
|
|

楼主 |
发表于 22-4-2006 01:07 AM
|
显示全部楼层
以下是我几年前在 VB 里所写的 code:
Set mydb = OpenDatabase("C:\SEproject\DataBase.mdb")
Set myset = mydb.OpenRecordset("Employee")
Do While (Not myset.EOF) And (found <> True) 'Start Search DataBase
If (txtname.Text = myset.Fields(0).Value) And (txtpass.Text = myset.Fields("Password").Value) Then
LogEnter = True
Me.Hide
Unload Me
MDIMainMenu.Show
Else
myset.MoveNext
End If
Loop 'DataBase Search End
请问,如和 convert 去 VB.NET 2005 的 Version?
[ 本帖最后由 heng81 于 22-4-2006 01:11 AM 编辑 ] |
|
|
|
|
|
|
|
发表于 27-4-2006 12:51 AM
|
显示全部楼层
最近刚好玩到,希望可以帮到你。
这是VB.net的
txtmsg.SelectionStart = Len(txtmsg.Text)
txtmsg.ScrollToCaret() |
|
|
|
|
|
|
| |
本周最热论坛帖子
|