Hi an alle,
da in meinem letzen Thema mein Frage nicht beantwortet wurde, versuche ich es mit einem neuen Thema erneut.
Nur habe ich diesmal ein anderes Problem.
Wenn ich mein Programm debuggen möchte kommt folgende Fehlermeldung ohne das ich meine Form sehen kann:
Hier mein kompletter Quellcode, ist zwar viel hilf aber weiter:
Kann mir jemand sagen wo der Fehler liegt oder was ich falsch gemacht habe? Danke
da in meinem letzen Thema mein Frage nicht beantwortet wurde, versuche ich es mit einem neuen Thema erneut.
Nur habe ich diesmal ein anderes Problem.
Wenn ich mein Programm debuggen möchte kommt folgende Fehlermeldung ohne das ich meine Form sehen kann:
Fehler beim Erstellen des Formulars. Weitere Informationen finden Sie in Exception.InnerException. Fehler: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt..
Hier mein kompletter Quellcode, ist zwar viel hilf aber weiter:
VB.NET-Quellcode
- Public Class Form1
- Public Shared Lektion1Vok(12)
- Public Shared Lektion1Ant(12)
- Public Shared Lektion2Vok(26)
- Public Shared Lektion2Ant(26)
- Public Shared Lektion3Vok(25)
- Public Shared Lektion3Ant(25)
- Public Shared Er
- Public Shared ran2
- Public Shared Anzdr1 = 0
- Public Shared anz1 = 0
- Public Shared Lektion = 1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Abfrage.Show()
- End Sub
- Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
- Lektion = ComboBox1.GetItemText(ComboBox1.SelectedItem).Remove(0, 8)
- FillListboxes()
- End Sub
- Sub FillListboxes()
- If Lektion = 1 Then
- For i As Integer = 0 To Lektion1Vok.Length
- RichTextBox1.AppendText(Lektion1Vok(i))
- Next
- End If
- End Sub
- Public Sub Gen()
- Lektion1Vok(0) = "basilica -ae f."
- Lektion1Ant(0) = "Markthalle , Gerichtshalle"
- Lektion1Vok(1) = "forum -i n."
- Lektion1Ant(1) = "Forum , Marktplatz"
- Lektion1Vok(2) = "monumentum -i n."
- Lektion1Ant(2) = "Denkmal"
- Lektion1Vok(3) = "statua -ae f."
- Lektion1Ant(3) = "Statue , Standbild"
- Lektion1Vok(4) = "templum -i n."
- Lektion1Ant(4) = "Tempel , heiliger Ort"
- Lektion1Vok(5) = "dominus -i m."
- Lektion1Ant(5) = "Hausherr , Herr"
- Lektion1Vok(6) = "domina -ae f."
- Lektion1Ant(6) = "Hausherrin , Herrin"
- Lektion1Vok(7) = "filius -i m."
- Lektion1Ant(7) = "Sohn"
- Lektion1Vok(8) = "filia -ae f."
- Lektion1Ant(8) = "Tochter"
- Lektion1Vok(9) = "servus -i m."
- Lektion1Ant(9) = "Sklave , Diener"
- Lektion1Vok(10) = "serva -ae f."
- Lektion1Ant(10) = "Sklavin , Dienerin"
- Lektion1Vok(11) = "Roma"
- Lektion1Ant(11) = "Rom"
- Lektion1Vok(12) = "forum Romanum"
- Lektion1Ant(12) = "Forum Romanum"
- Lektion2Vok(0) = "est"
- Lektion2Ant(0) = "er (sie, es) ist"
- Lektion2Vok(1) = "amicus -i m."
- Lektion2Ant(1) = "Freund"
- Lektion2Vok(2) = "amica -ae f."
- Lektion2Ant(2) = "Freundin"
- Lektion2Vok(3) = "et"
- Lektion2Ant(3) = "und, auch"
- Lektion2Vok(4) = "sunt"
- Lektion2Ant(4) = "sie sind"
- Lektion2Vok(5) = "hic"
- Lektion2Ant(5) = "hier"
- Lektion2Vok(6) = "ibi"
- Lektion2Ant(6) = "dort"
- Lektion2Vok(7) = "porta -ae f."
- Lektion2Ant(7) = "Tor"
- Lektion2Vok(8) = "iam"
- Lektion2Ant(8) = "nun, schon, bereits"
- Lektion2Vok(9) = "patet -eo"
- Lektion2Ant(9) = "er (sie, es) steht offen, erstreckt sich"
- Lektion2Vok(10) = "taberna -ae f."
- Lektion2Ant(10) = "Laden, Wirtshaus"
- Lektion2Vok(11) = "cur?"
- Lektion2Ant(11) = "warum?"
- Lektion2Vok(12) = "adest"
- Lektion2Ant(12) = "er (sie, es) ist da, hilft"
- Lektion2Vok(13) = "quid?"
- Lektion2Ant(13) = "was?"
- Lektion2Vok(14) = "videt -eo"
- Lektion2Ant(14) = "er (sie, es) sieht"
- Lektion2Vok(15) = "properat -o"
- Lektion2Ant(15) = "er (sie, es) eilt, beeilt sich"
- Lektion2Vok(16) = "gaudet -eo"
- Lektion2Ant(16) = "er (sie, es) freut sich"
- Lektion2Vok(17) = "salutat -o"
- Lektion2Ant(17) = "er (sie, es) (be)grüßt"
- Lektion2Vok(18) = "salve"
- Lektion2Ant(18) = "Sei gegrüßt! Guten Tag!"
- Lektion2Vok(19) = "salvete"
- Lektion2Ant(19) = "Seid gegrüßt! Guten Tag!"
- Lektion2Vok(20) = "nam"
- Lektion2Ant(20) = "denn, nämlich"
- Lektion2Vok(21) = "adsunt"
- Lektion2Ant(21) = "sie sind da, helfen"
- Lektion2Vok(22) = "sed"
- Lektion2Ant(22) = "aber, sondern"
- Lektion2Vok(23) = "non"
- Lektion2Ant(23) = "nicht"
- Lektion2Vok(24) = "cessat -o"
- Lektion2Ant(24) = "er (sie, es)zögert, rastet"
- Lektion2Vok(25) = "interrogat -o"
- Lektion2Ant(25) = "er (sie, es) fragt"
- Lektion2Vok(26) = "ubi?"
- Lektion2Ant(26) = "wo?"
- Lektion3Vok(0) = "curia -ae f."
- Lektion3Ant(0) = "Kurie"
- Lektion3Vok(1) = "nunc"
- Lektion3Ant(1) = "jetzt, nun"
- Lektion3Vok(2) = "senator -is m."
- Lektion3Ant(2) = "Senator"
- Lektion3Vok(3) = "intrat -o"
- Lektion3Ant(3) = "er (sie, es) betritt, tritt ein"
- Lektion3Vok(4) = "paulum"
- Lektion3Ant(4) = "ein wenig"
- Lektion3Vok(5) = "exspectat -o"
- Lektion3Ant(5) = "er (sie, es) wartet, erwartet"
- Lektion3Vok(6) = "prope"
- Lektion3Ant(6) = "in der Nähe, beinahe"
- Lektion3Vok(7) = "etiam"
- Lektion3Ant(7) = "auch, sogar"
- Lektion3Vok(8) = "mercator -is m."
- Lektion3Ant(8) = "Kaufmann, Händler"
- Lektion3Vok(9) = "sedet -eo"
- Lektion3Ant(9) = "er (sie, es) sitzt"
- Lektion3Vok(10) = "tacet -eo"
- Lektion3Ant(10) = "er (sie, es) schweigt, verschweigt"
- Lektion3Vok(11) = "nondum"
- Lektion3Ant(11) = "noch nicht"
- Lektion3Vok(12) = "laborat -o"
- Lektion3Ant(12) = "er (sie, es) arbeitet, strengt sich an"
- Lektion3Vok(13) = "populus -i m."
- Lektion3Ant(13) = "Volk, Volksmenge"
- Lektion3Vok(14) = "diu"
- Lektion3Ant(14) = "lange Zeit"
- Lektion3Vok(15) = "tandem"
- Lektion3Ant(15) = "endlich"
- Lektion3Vok(16) = "accedit -o kons."
- Lektion3Ant(16) = "er (sie, es) kommt herbei, kommt hinzu"
- Lektion3Vok(17) = "statim"
- Lektion3Ant(17) = "auf der Stelle, sofort"
- Lektion3Vok(18) = "clamat -o"
- Lektion3Ant(18) = "er (sie, es) ruft laut, schreit"
- Lektion3Vok(19) = "tum"
- Lektion3Ant(19) = "da, damals, dann, darauf"
- Lektion3Vok(20) = "quis?"
- Lektion3Ant(20) = "wer?"
- Lektion3Vok(21) = "mittit -o kons."
- Lektion3Ant(21) = "er (sie, es) lässt (los), schickt, wirft"
- Lektion3Vok(22) = "nemo"
- Lektion3Ant(22) = "niemand"
- Lektion3Vok(23) = "placet -eo"
- Lektion3Ant(23) = "er (sie, es) gefällt"
- Lektion3Vok(24) = "stat -o"
- Lektion3Ant(24) = "er (sie, es) steht"
- Lektion3Vok(25) = "ridet -eo"
- Lektion3Ant(25) = "er (sie, es) lacht , lacht aus"
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Gen()
- End Sub
- End Class
Kann mir jemand sagen wo der Fehler liegt oder was ich falsch gemacht habe? Danke