Advertisement

06.24.2008 at 11:30PM PDT, ID: 23513494
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.7

listview box - InvalidArgument=Value of '0' is not valid for 'index'.

Asked by awolarczuk in .NET

Tags: , ,

hoping to find wayne here been very helpful with another question but really if anyone else knows please help me out getting very pissed wit hte code and have been looking all afternoon for an answer


InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index

The weird this is if i call this form up blank and call the modal with a button on the form all works fine

Any ideas guys

System.ArgumentOutOfRangeException was unhandled
  Message="InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index"
  ParamName="index"
  Source="System.Windows.Forms"


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
****code for module*******
    Public Sub stoo()
        Dim rs As New ADODB.Recordset
        Dim sql As String
        Dim objlst As ListViewItem
        Dim objlst1 As ListViewItem
        Form1.spel.Items.Clear()
        Form1.stgl.Items.Clear()
        Form1.ListView2.Items.Clear()
        Form1.studentnotes.Text = ""
 
 
        sql = "select * from [Student_Outcomes] where [StudentID] = " & Form1.TextBox7.Text
 
        Debug.Print(sql)
        rs.Open(sql, cnn1, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
        Do Until rs.EOF
            With Form1.ListView1
 
                objlst = Form1.ListView2.Items.Add(rs.Fields("OutcomeDesc").Value)
                objlst.SubItems.Add(rs.Fields("outcomedate").Value)
                objlst.SubItems.Add(rs.Fields("OutcomeAuth").Value)
                objlst.SubItems.Add(rs.Fields("OutcomeProgram").Value)
                objlst.SubItems.Add(rs.Fields("id").Value)
            End With
 
 
            rs.Update()
            rs.MoveNext()
 
        Loop
        rs.Close()
 
        sql = "select * from [Student_Programs] where [StudentID] = " & Form1.TextBox7.Text
        Debug.Print(sql)
        rs.Open(sql, cnn1, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
        Do Until rs.EOF
            With Form1.spel
 
                objlst1 = Form1.spel.Items.Add(rs.Fields("StudentProg").Value)
                objlst1.SubItems.Add(rs.Fields("StudentProgRego").Value)
            End With
 
 
            rs.Update()
            rs.MoveNext()
 
        Loop
        rs.Close()
 
        sql = "select * from [Student_TargetGroups] where [StudentID] = " & Form1.TextBox7.Text
 
        Debug.Print(sql)
        rs.Open(sql, cnn1, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
        Do Until rs.EOF
            With Form1.stgl
 
                objlst1 = Form1.stgl.Items.Add(rs.Fields("StudentTG").Value)
                'objlst1.SubItems.Add(rs.Fields("StudentProgRego").Value)
            End With
 
 
            rs.Update()
            rs.MoveNext()
 
        Loop
        rs.Close()
    End Sub
End Module
 
 
***** code for listview *****
 
 
 Dim rs As New ADODB.Recordset
        Dim datesel As Date
        Dim sql As String
        Dim idd As String
        Dim test As String
        studentnotes.Text = ""
        idd = ListView2.SelectedItems.Item(0).SubItems(4).Text
        ' Debug.Print(idd)
        ' test = ListView2.SelectedItems.Item(0).SubItems(1).Text
        ' Debug.Print(test)
 
        datesel = Date.ParseExact(ListView2.SelectedItems.Item(0).SubItems(1).Text, "dd/MM/yyyy", My.Computer.Info.InstalledUICulture)
        Debug.Print(datesel)
        sql = "select * from [Student_Outcomes] where [OutcomeDate]  = #" & datesel.ToString("dd-MM-yyyy") & "# And [StudentID] = " & TextBox7.Text & "  And [id] = " & idd
        Debug.Print(sql)
        rs.Open(sql, cnn1, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockReadOnly)
        studentnotes.Text = ""
        If Not (rs.EOF And rs.BOF) Then
            If Not IsDBNull(rs.Fields("OutcomeNotes").Value) Then
                studentnotes.Text = rs.Fields("OutcomeNotes").Value
                Debug.Print(rs.Fields("outcomenotes").Value)
            End If
        End If
        rs.Close()
[+][-]06.24.2008 at 11:36PM PDT, ID: 21863059

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 11:42PM PDT, ID: 21863081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 11:49PM PDT, ID: 21863104

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 11:51PM PDT, ID: 21863110

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.24.2008 at 11:56PM PDT, ID: 21863132

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:00AM PDT, ID: 21863145

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:01AM PDT, ID: 21863150

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:03AM PDT, ID: 21863167

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:07AM PDT, ID: 21863185

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:07AM PDT, ID: 21863190

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:10AM PDT, ID: 21863201

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:12AM PDT, ID: 21863212

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:15AM PDT, ID: 21863229

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:16AM PDT, ID: 21863236

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:20AM PDT, ID: 21863251

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:20AM PDT, ID: 21863253

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:23AM PDT, ID: 21863269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:26AM PDT, ID: 21863284

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:27AM PDT, ID: 21863287

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:43AM PDT, ID: 21863365

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:45AM PDT, ID: 21863376

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: .NET
Tags: vb.net, listview box, box
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.25.2008 at 12:48AM PDT, ID: 21863391

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:51AM PDT, ID: 21863411

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:55AM PDT, ID: 21863431

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:56AM PDT, ID: 21863434

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 12:58AM PDT, ID: 21863450

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 01:06AM PDT, ID: 21863493

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 01:07AM PDT, ID: 21863497

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 02:29AM PDT, ID: 21863876

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_Related_20080208