标题:[求助]TextBox问题[已解决]
只看楼主
purana
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:广东-广州
等 级:版主
威 望:66
帖 子:6039
专家分:0
注 册:2005-6-17
得分:0 
[CODE]Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
Text1.Alignment = vbLeftJustify
Text1.Text = StrReverse(Text1.Text)
Case 1
Text1.Alignment = vbRightJustify
Text1.Text = StrReverse(Text1.Text)
End Select
End Sub

Private Sub Text1_Change()
If Text1.Alignment = vbRightJustify Then
Text1.SelStart = 0
End If
End Sub[/CODE]

我的msn: myfend@
2006-10-20 13:12
tanghuawei
Rank: 4
来 自:美丽的湖南
等 级:业余侠客
威 望:3
帖 子:531
专家分:220
注 册:2006-3-16
得分:0 
OK,多谢,彻底解决哈!

汽车尾气检测网络系统QQ:357766186__MSN:MSNTHW19850316@
2006-10-20 13:20
chenwind17
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-9-25
得分:0 

Option Explicit
Dim i%
Private Sub Option1_Click()
i = 0
Text1.Alignment = 0
Text1.SelStart = Len(Text1)
Text1.SetFocus
End Sub

Private Sub Option2_Click()
Text1.Alignment = 1
Text1 = StrReverse(Text1)
i = 1
Text1.SetFocus
End Sub

Private Sub text1_change()
If i = 1 Then Text1.SelStart = 0
End Sub
晚了一步,呵呵

2006-10-20 14:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-97506-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.602139 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved