Allowing two windows from the same APP to move
I'm making a VB.net application. I have a dialog that pops up at some points. It is set as TopMost
. The problem is, when it pops up, you can't move the main form. How ca开发者_开发知识库n I make it so it shows and is usable while allowing the main form to continue to be usable?
It sounds like you're calling ShowDialog()
, but the behaviour you describe sounds like you want to call Show()
instead (of course, this'll mean that you will not get the DialogResult, nor will the calling code block, but this allows the parent window message loop to handle things like moving the window)
精彩评论