Tu macie kodusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication15
{
public partial class Form1 : Form
{
public string name = "login";
public string pass = "haslo";
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
Form Form2 = new Form();
// poprawność danych
if ((textBox1.Text == name) && (textBox2.Text == pass)) // name.Text => TextBox; password.Text => MaskedTextBox... ewentualnie TextBox
{
// otwarcie nowego okna po poprawnych danych
Form2.Show();
}
else
{
MessageBox.Show("sprawdz haslo");
}
}
}
} Mam pytanie Co trzeba tu wykombinowac zeby na formatce 2 były widoczne rzeczy ktÓre na niej umieściłem tzn textboxy itp buttony bo ona sie otwiera ale jest pusta ??????????????/