Visualizzazione dei risultati da 1 a 4 su 4

Visualizzazione discussione

  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2014
    Messaggi
    16

    [vb.net] Index was out of range

    Salve ragazzi ho il seguente errore, mi potete aiutare?

    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    Questo il codice:


    codice:
    Private Sub DtGrid_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DtGrid.CellContentClick
    
    
            If e.ColumnIndex = 0 Then
                MessageBox.Show("Hai cliccato sul pulsante apri")
                Dim nomefile As String = DtGrid.SelectedRows.Item(5).ToString
                'apri il process per il file
    
    
                Process.Start("acrord32.exe")
    
    
            End If
    
    
            Try
                PopolaCampi()
    
    
            Catch ex As Exception
                Exit Sub
            End Try
        End Sub
    Ultima modifica di LeleFT; 29-09-2014 a 09:53 Motivo: Aggiunti i tag CODE

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.