public QueryResult(DataBaseUser data) { InitializeComponent(); OK.Focus(); if (data == null) { Result.Text = "No such user in the database!"; } else { Result.Text = "User ID\t" + "User Name\t" + "User Group\n" + data.UserID + "\t" + data.UserName + "\t" + data.UserGroup; } }