Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/08/2009, 14:02
zxs23
 
Fecha de Ingreso: mayo-2009
Mensajes: 238
Antigüedad: 15 años, 11 meses
Puntos: 7
Respuesta: Dudas donde guardar pass

Puedes guardar la info en el registro de windows y leerla desde ahi
Código:
Function LeerRegistro(ElControl As Control) As String
LeerRegistro = GetSetting(App.EXEName, "Settings", ElControl.Parent.Name & "_" & ElControl.Name)
End Function

Function GuardarRegistro(ElControl As Control)
'SaveSetting nombreAplicación, sección, clave, valor
SaveSetting App.EXEName, "Settings", ElControl.Parent.Name & "_" & ElControl.Name, ElControl
End Function

Private Sub Form_Unload(Cancel As Integer)
GuardarRegistro Text1
GuardarRegistro Text2
End Sub

Private Sub Form_Load()
Text1 = LeerRegistro(Text1)
Text2 = LeerRegistro(Text2)
End Sub
La informacion se guardara en esta ruta mas o menos
HKEY_CURRENT_USER/Software/VB and VBA Program Setting/nombre_de_tu_exe

Por otro lado podria ser guardado en una base de datos, un archivo de texto, archivo .ini, pero lo mas rapido es el registro de windows.