I want to use the data form Form1
in Form2
.
I did it in Public, but it didn't happen again.
I Can't get data from Form1
into Form2
. How can I fix this problem?
.
Form1 f1 = new Form1();
Random rnd = new Random();
Font fnt = new Font(f1.comboBox1.SelectedIndex.ToString(),12);
TextureBrush tbr = new TextureBrush(Image.FromFile("kaplan.jpg"),
System.Drawing.Drawing2D.WrapMode.Tile);
g.DrawString(f1.textBox1.Text, fnt, tbr, rnd.Next(0, 1024), rnd.Next(0, 768));