C carmen Jul 1, 2004 #1 Is it possible to use ShowDialog with some parameters? How could I redefine this method? Thank you Carmen
Is it possible to use ShowDialog with some parameters? How could I redefine this method? Thank you Carmen
? =?ISO-8859-2?Q?Marcin_Grz=EAbski?= Jul 1, 2004 #2 Hi Carmen, Is it possible to use ShowDialog with some parameters? How could I redefine this method? Thank you Carmen Click to expand... It is possible... and it is even recommended in some cases. e.g. in form based class private bool performTest=false; public DialogResult ShowDialog(IWin32Window owner, bool performTest) { this.performTest=performTest; base.ShowDialog(owner); } Cheers! Marcin
Hi Carmen, Is it possible to use ShowDialog with some parameters? How could I redefine this method? Thank you Carmen Click to expand... It is possible... and it is even recommended in some cases. e.g. in form based class private bool performTest=false; public DialogResult ShowDialog(IWin32Window owner, bool performTest) { this.performTest=performTest; base.ShowDialog(owner); } Cheers! Marcin
G Guest Jul 1, 2004 #3 My fault private bool performTest=false; public DialogResult ShowDialog(IWin32Window owner, bool performTest) { this.performTest=performTest; return base.ShowDialog(owner); } Cheers! Marcin
My fault private bool performTest=false; public DialogResult ShowDialog(IWin32Window owner, bool performTest) { this.performTest=performTest; return base.ShowDialog(owner); } Cheers! Marcin