CodeKeep C# Feed Aprile 4th, 2008
->
Description: passing values from window to another window
Link: http://www.codekeep.net/snippets/805d56a1-5c70-4722-b9d5-58d30eecdd6c.aspx
in first window buttonclick
=============================
string fileinfo="c:\\test.txt";
WinViewImage winimage = new WinViewImage(fileInfo);
winimage.Show();
in second window
=================
public WinViewImage(string imgpath)//Pass String
{
InitializeComponent();
strimgpath1 = imgpath;
}
public string strimgpath1;
private void WinViewImage_Load(object sender, EventArgs e)
{
textbox1.Text= strimgpath1;
}
}

CodeKeep C# Feed Aprile 4th, 2008