我做了一个学生管理系统,使用的是VB和SQL Server

来源:百度知道 编辑:UC知道 时间:2024/05/18 03:34:13
,其中有句话,Private Sub lvwClient_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single),编译时显示未找到方法或数据成员,这句话变黄了,怎么办?
Private Sub lvwClient_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim Litem As ListItem
If lvwClient.ListItems.Count = 0 Then
Exit Sub
End If
If lvwClient.SelectedIte登录m Is Nothing Then
Exit Sub
End If
If Button = vbRightButton Then
Set Litem = lvwClient.SelectedItem
muUID.Caption = "用户名:" & Litem.Text
muIP.Caption = "IP地址:" & Litem.SubItems(1)
muSF.Caption = "用户类型:" & Litem.SubItems(2)
PopupMenu userCtrl, , x, y + picLeft.Top
End If
End Sub
代码如上,如何设置用户IP啊。

你是否引用了类库或是编写了自定义的类库抑或是用了ActiveX DLL,这都会引发这种问题。未找到方法或数据成员的意思是指对于你引用的一个对象不存在或该对象不存在你所引用的方法或属性。你可以重新查一下。不行的话把源码发给我我给你看一下。
jialiu830205@163.com