Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
ShowDialog
Parent
Control
Dim f As New Form2()f.Owner = Mef.ShowDialog()
Form2 f = new Form2();f.Owner = this;string s = this.Text; //make a copy of the original captionthis.Text = f.Text; //set our caption to the form we are about to showf.ShowDialog();this.Text = s; //restore the original caption once the second form is closed