namespace WindowsFormsApplication2
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
poruka = textBox1.Text;
}
private string poruka;
public string Poruka
{
get { return poruka; }
set { poruka = value; }
}
private void button2_Click(object sender, EventArgs e)
{
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult rez = MessageBox.Show("Da li zelite da izadjete?", "Obavestenje", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk);
if (rez == DialogResult.No)
{
e.Cancel = true;
}
}
}
bez blama