Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

[RESOLVED] Form_Load Issue

$
0
0
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.

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


Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>