J'ai trouvé le moyen de resizer les images et les boutons selon la
résolution de l'écran de l'utilisateur mais le texte lui ne scale pas!
Que faire ????
Voici mon code:
Option Explicit
Dim OldWidth As Integer
Dim OldHeight As Integer
Private Sub Form_Load()
OldWidth = Width
OldHeight = Height
End Sub
Private Sub Form_Resize()
On Error Resume Next
Dim XCoeff As Single
Dim YCoeff As Single
Dim Controle As Control
XCoeff = Width / OldWidth
YCoeff = Height / OldHeight
For Each Controle In Me
Controle.Move Controle.Left * XCoeff, Controle.Top * YCoeff, Controle.Width * XCoeff, Controle.Height * YCoeff
Next
OldWidth = Width
OldHeight = Height
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Text1.Text = Screen.Width
Text2.Text = Screen.Height
End Sub
Private Sub Command3_Click()
Me.Top = 0
Me.Left = 0
Me.Width = Screen.Width
Me.Height = Screen.Height
End Sub
Merci!!!!!!