public Form1() { InitializeComponent(); if (File.Exists(".\\system\\user.ini")) { StringBuilder temp = new StringBuilder(255); int i = GetPrivateProfileString("USER_ID", "ID", "", temp, 255, ".\\system\\user.ini"); this.textBox_login_username.Text = temp.ToString(); } else { if (!Directory.Exists(".\\system\\")) { Directory.CreateDirectory(".\\system\\"); } WritePrivateProfileString("USER_ID", "ID", "", ".\\system\\user.ini"); } client.user_lastloginip = GetLocalIP(); string MyConnectionString = "Server=109.130.15.111;Database=repairfunction;Uid=pesystem;Pwd=tstcpe;pooling=true;CharSet=utf8;port=1081"; MySqlConnection connection = new MySqlConnection(MyConnectionString); try { connection.Open(); } finally { connection.Close(); } this.textBox_login_password.Select(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)