Skip to content

Commit

Permalink
little fix with selection tab
Browse files Browse the repository at this point in the history
  • Loading branch information
soaresden committed Mar 14, 2021
1 parent b866bca commit 3e8f16c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RecalCopier/Quizz.vb
Original file line number Diff line number Diff line change
Expand Up @@ -736,17 +736,18 @@ recalculrando:
Private Sub RandomList_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RandomList.SelectedIndexChanged
txtpositionrandom.Text = RandomList.SelectedIndex + 1
Historique.SelectedIndex = RandomList.SelectedIndex 'on change aussi celui qui est selectionné dans l'historique
PlayerStop.PerformClick()

'calcul du vrai chiffre
Dim chiffreactuel = RandomList.SelectedItem
If chiffreactuel = Nothing Then Exit Sub
Dim vraichiffre = Convert.ToInt32(RandomList.SelectedItem.ToString) / 37 - 5
Dim vraichiffre As Integer = Convert.ToInt32(RandomList.SelectedItem.ToString) / 37 - 5

TabControl1.SelectedTab = TabPage2
TempGrid.ClearSelection()
TempGrid.CurrentCell = TempGrid.Item("Titre", CInt(vraichiffre))
TempGrid.BeginEdit(False)
TabControl1.SelectedTab = TabPage1

PlayerStop.PerformClick()
End Sub


Expand Down

0 comments on commit 3e8f16c

Please sign in to comment.