evryoneあなたが..私は私がてtextBox名は持っているコミュニティ2015のVisual Studioを使用して、私のWindowsフォームアプリケーションのコードを持ってください私を助けることができるHI ユーザー名もう1つはパスワード、最後はログインログインするとツリータイムエラーが表示されますここで問題を自動的に忘れたパスワードとユーザーのパスワードを回復する方法を教えてください彼または彼女がフォームにログインするときにツリータイムエラーです。私のデータベースのフォームに行く前に私はあなたが助けて、どのように説明することができますか分かりません。ここ3回
は私のコードは、あなたがする必要がどのような
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SQLSERVER_VISUALSTUDIO_COMMUNITY
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
txt_Password.PasswordChar = '*';
}
private void txt_login_Click(object sender, EventArgs e)
{
if (txt_USername.Text == "" && txt_Password.Text == "")
{
MessageBox.Show("Please enter your password and user_name");
txt_USername.Clear();
txt_Password.Clear();
}
else if (txt_USername.Text == "jondygonzales" && txt_Password.Text == "sharkwebcaster")
{
MessageBox.Show("successfully log_in");
Form1 f = new Form1();
f.Show();
Form2 main = new Form2();
main.Show();
this.Hide();
}
}
}
}
どのようなエラーコードが表示されますか? –
@AidenGrossmanありがとうございます。私はエラーはありませんが、私の要点は、ユーザーがログインフォームのツリー時間にエラーが発生した場合、忘れたパスワードを表示したいということです。 – Sharkweb