Hello,
I have code in my form_load to set a textbox.text to something. Yet it is not working. I also have form_load to set an IP and Port and that is working. All of these values are coming from an ini file. I was wondering if you could look over the code and tell me why the username won't load while the other information does. Thanks.
I have code in my form_load to set a textbox.text to something. Yet it is not working. I also have form_load to set an IP and Port and that is working. All of these values are coming from an ini file. I was wondering if you could look over the code and tell me why the username won't load while the other information does. Thanks.
Code:
Private Sub Form_Load()
Dim FileName As String
FileName = App.Path & "Settings.ini"
IP = GetVar(FileName, "CONNECTION", "IP")
Port = GetVar(FileName, "CONNECTION", "Port")
txtUserName.Text = GetVar(FileName, "CONNECTION", "Username")
End Sub