Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_windows_forms thread: Keeping A Form Topmost


Message #1 by "Guy Harwood" <guy@h...> on Wed, 22 Jan 2003 16:31:45
Hi,

    This is really buggin me as the .NET documentation example works fine 
but mine doesnt!

I have an MDI application, i open a child form and set its MDIParent 
property to the MDI form.

I then click a button on the child form that opens a small child form (a 
pick list).  I need this small form to remain topmost until it is closed. 

However, i have tried many variations of opening the form including...

ShowDialog 
...
Showdialog(FirstChildForm.mdiparent)
...

Show()
smallchild.TopMost = True

None of these seem to work, what am i doing wrong?

  Return to Index