I have an MDIChild form that should show a dialog. I am currently doing this so from within the mdichild form ...
f.ShowDialog(Me)
Should i use f.ShowDialog(mdiparent)?
f.ShowDialog(mdiparent)
What is the difference when setting up an owner before a call ShowDialog()?
ShowDialog()
The difference is in which parent the dialogue belongs. If you explicitly specify the parent, then this window has a dialog. If you do not install it (using the parameterless version of ShowDialog), then the current active window of your application will have a dialog box. This is on MSDN , by the way.
, StartPosition FormStartPosition.CenterParent.
, , Owning ShowDialog, :
f.Owner = Me f.ShowDialog()
...
MDI, ShowDialog (Me), Me.Owner MDI, MDI .
Me.Owner.ActiveControl , :
Dim ContractForm As New Contract(strType, intMode) ContractForm.Owner = Me dgrAction = ContractForm.ShowDialog()
. Me.Owner MDI.
, !
Source: https://habr.com/ru/post/1702383/More articles:Режим Visual Studio 2008 Emacs - visual-studio-2008Is it wrong to use LinkButtons as hyperlinks? - .netHow to record wav sound from microphone using Windows API? - windowshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702381/usability-solutions-to-displaying-denormalized-data&usg=ALkJrhgwTFyV5hTkPoi-36nJD13PfNcgzAGood or bad practice using plain html - htmlRequest Tracker on Rails? - ruby | fooobar.comСохранять идентификатор пользователя в Principal или Identity? ASP.Net/OpenID - openidPartial Project Issues Visual Studio Database Pro - visual-studio-dbproVB6 - How to automatically break command line compatibility (or msbuild) - compatibilitySelf-referencing URLs - httpAll Articles