Hilfe beim convertieren von Code
20.04.2020 12:15:09
Code
ich bitte um ein wenig hilfe bei der convertierung von VBA zu VB.NET von volgendem Code:
Private Sub ListBox1_Click()
Dim i As Integer, intWert As Integer, intCounter As Integer
If ListBox1.List(ListBox1.ListIndex, 0) = "" Then
Call PunkteEinblenden(False)
Exit Sub
Else
Call PunkteEinblenden(True)
End If
For i = 6 To 1 Step -1
Controls("Punkt" & i).Top = Image1.Top + (((Image1.Height - (Punkt1.Height * 6)) / 12) _
* (((i - 1) * 2) + 1)) + ((i - 1) * Punkt1.Height)
If ListBox1.List(ListBox1.ListIndex, intCounter) = "x" Then
intWert = 1
Else
intWert = ListBox1.List(ListBox1.ListIndex, intCounter) + 1
End If
Controls("Punkt" & i).Left = Image1.Left + (((Image1.Width - (Punkt1.Width * 16)) / 32) * _
(((intWert - 1) * 2) + 1)) + ((intWert - 1) * Punkt1.Width)
intCounter = intCounter + 1
Next i
End Sub
Ich hoffe unter euch ist jemand der sich mit VB.Net auskennt und mir dabei behilflich sein kann.Vielen Dank im Voraus
Antonio