(команда);. Open ();
команда.CommandText = "SELECT * FROM pas";. SelectCommand = команда;. Fill (pas, "pas");. Close (); (int i = 0; i
{(textBox1.Text.ToString () == pas.Tables [0]. Rows [i] ["pas"]. ToString ())
{. Visible = false; f3 = new Form3 ();. ShowDialog ();. Focus ();. Dispose (); ();
}
{. Text = "";. Show ("Ви не вгадали пароль!", "Помилка");
}
}
}
}
}
Форма
{
///
///Summary description for Form3.
/// class Form3: System.Windows.Forms.Form
{System.Windows.Forms.ListBox listBox1; System.Windows.Forms.TextBox textBox1; System.Windows.Forms.Button button1; System.Windows.Forms.Button button2; System.Windows.Forms . Button button3; System.Windows.Forms.Button button4; System.Windows.Forms.ComboBox comboBox1; System.Windows.Forms.Label label1;
///
///Required designer variable.
/// System.ComponentModel.Container components = null; Form3 ()
{
//
// Required for Windows Form Designer support
// ();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
///
///Clean up any resources being used.
/// override void Dispose (bool disposing)
{(disposing)
{(components! = null)
{. Dispose ();
}
}. Dispose (disposing);
}
# region Windows Form Designer generated code
///
///Required method for Designer support - do not modify
///the contents of this method with the code editor.
/// void InitializeComponent ()
{. listBox1 = new System.Windows.Forms.ListBox ();. textBox1 = new System.Windows.Forms.TextBox ();. button1 = new System.Windows.Forms.Button () ;. button2 = new System.Windows.Forms.Button ();. button3 = new System.Windows.Forms.Button ();. button4 = new System.Windows.Forms.Button ();. comboBox1 = new System.Windows . Forms.ComboBox ();. label1 = new System.Windows.Forms.Label ();. SuspendLayout ();
//
// listBox1
//. listBox1.Anchor = ((System...