1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Public Function ChargeLng(ByVal Feuille As Form, ByVal Strpath As String)
Dim controle As System.Windows.Forms.Control
Feuille.Text = lectureINI(Feuille.Name, Feuille.Name, Strpath)
For Each controle In Feuille.Controls
Select Case TypeName(controle)
Case "TextBox"
controle.Text = lectureINI(Feuille.Name, controle.Name, Strpath)
Case "Button"
controle.Text = lectureINI(Feuille.Name, controle.Name, Strpath)
Case "ListBox"
controle.Text = lectureINI(Feuille.Name, controle.Name, Strpath)
Case "RadioButton"
controle.Text = lectureINI(Feuille.Name, controle.Name, Strpath)
Case "MenuStrip"
Dim menustrip1 As MenuStrip
For Each oitem As ToolStripMenuItem In menustrip1.Items
oitem.Text = lectureINI(Feuille.Name, oitem.Name, Strpath)
Next
End Select
Next
End Function |
Partager