Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox error

Status
Not open for further replies.

monasa

IS-IT--Management
Jun 27, 2004
41
0
0
CA
The code give me an error in this line :
DGnotes.datasource = MyQueryMethod2(LBnom.SelectedItem.text)

The error is :
---
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'newpageindex' is not a member of 'System.EventArgs'.

Source Error:

Line 82: DGnotes.currentpageindex=e.newpageindex
Line 83: DGnotes.datasource = MyQueryMethod2(LBnom.SelectedItem.text)
Line 84: DGnotes.databind()


----
my code is :

Sub LBnom_SelectedIndexChanged(sender As Object, e As EventArgs)

DGnotes.datasource = MyQueryMethod2(LBnom.SelectedItem.text)
DGnotes.databind()

End Sub


please help
 
And what is MyQueryMethod2?

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top