en el form_load he puesto:
Form1.BackColor = ReadINI(App.Path & "\joint01.INI", "config", "backcol", RGB(255, 255, 255))
y en el modulo:
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal SName$, ByVal KName$, ByVal def$, ByVal ret$, ByVal Size%, ByVal fn$) As Long
Function ReadINI(ByVal fn As String, ByVal sect As String, ByVal key As String, ByVal def As String) As String
Dim ret As String, retval As Integer
ret = String$(255, 0)
retval = GetPrivateProfileString(sect, key, def, ret, Len(ret), fn)
If retval = 0 Then
ret = def
Else
ret = Mid(ret, 1, retval)
If ret = "" Then
ret = def
End If
End If
ReadINI = Trim$(ret)
End Function
pero no me funciona me pone que no coinceden los tipos y esto es lo que puesto en el archivo ini.
[config]
backcol = 255,0,255