si.. è gia' cosi'
ecco ti faccio vedere nella classe, putroppo per scrivere non ho messo la parte dell'ex.exception
e qui la formcodice:Try CMD.ExecuteNonQuery() Catch ex As Exception Err.Raise("errore nell'inserimento " & ex.Message) End Try
codice:Try ObjDipendenti.Inserisci() MsgBox("Dipendente salvato correttamente", MsgBoxStyle.Information, "dipendenti") Catch ex As Exception MsgBox(ex.Message) End Try

Rispondi quotando