急求助各路大神,我用VB编写一个ASCII查询器,以下是代码,运行时候总出现错误424,要求对象,求教

[复制链接]
查看11 | 回复1 | 2011-3-5 06:33:15 | 显示全部楼层 |阅读模式
Private myWidth As Single
Private myHeight As Single
Private myShowed As Single

Private Sub txtChar_GotFocus()
txtChar.Text = \"\"
txtASCII.Text = \"\"
End Sub

Private Sub txtChar_Change()
Dim myKeyASCII As String
If txtChar.Text\"\" Then
txtASCII.Text = Asc(txtChar.Text)
myKeyASCII = txtChar.Text defds123 \"\" defds123 txtASCII.Text
Istexisted.AddItem myKeyASCII, 0
txtASCII.SetFocus
txtASCII.SelStart = 0
txtASCII.SelLength = 4
End If
End Sub



Private Sub Form_REsize()
frmmain.Width = myWidth
frmmain.Height = myHeight

End Sub

Private Sub Form_load()
myWidth = frmmain.Width
myHeight = frmmain.Height
End Sub

这是代码,出现问题的是Istexisted.AddItem myKeyASCII, 0
请问怎么改...
回复

使用道具 举报

千问 | 2011-3-5 06:33:15 | 显示全部楼层
<pre id=\"best-answer-content\" class=\"reply-text mb10\">Istexisted 是一个Listbox控件,添加一个Listbox控件并修改其name属性为Istexisted 即可
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行