Moin Zusammen,
ich stehe mal wieder vor einem Problem, bei dem ich nicht weiter weis.
Bei folgendem Code
Woran liegt der Fehler bzw. nach was muss ich suchen?
Im Voraus Danke für eure Hilfe.
Günter
ich stehe mal wieder vor einem Problem, bei dem ich nicht weiter weis.
Bei folgendem Code
VB.NET-Quellcode
- Private Sub KAngebotsTextTextBox_DoubleClick(sender As Object, e As EventArgs) Handles KAngebotsTextTextBox.DoubleClick
- ' TextBoxText ist ein Globale Variable
- TextBoxText = rwK.KAngebotsText '<-- in der Variablen TextBoxText steht der korrekt Inhalt
- rwK.KAngebotsText = "ABC" ' <-- hier kommt die Fehlermeldung aus der u.a. Routine (Designer)
- ' rwK.KAngebotsText = TextBoxText ' <-- hier kommt keine Fehlermeldung
- End Sub
VB.NET-Quellcode
- <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
- Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")> _
- Public Property KAngebotsText() As String
- Get
- Try
- Return CType(Me(Me.tabletbl_Kalkulationen.KAngebotsTextColumn),String)
- Catch e As Global.System.InvalidCastException
- Throw New Global.System.Data.StrongTypingException("Der Wert für Spalte KAngebotsText in Tabelle tbl_Kalkulationen ist DBNull.", e)
- End Try
- End Get
- Set
- Me(Me.tabletbl_Kalkulationen.KAngebotsTextColumn) = value ' < ---- Fehlermeldung System.NullReferenceException: "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
- End Set
- End Property
Woran liegt der Fehler bzw. nach was muss ich suchen?
Im Voraus Danke für eure Hilfe.
Günter
Gruß Günter