Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("wregistomanut")
Dim form As Form = B4XPages.GetNativeParent(Me)
form.SetFormStyle("UNIFIED")
form.WindowWidth = 455dip
form.WindowHeight = 210dip
form.Icon = fx.LoadImage(File.DirAssets, "icon.png")
form.AlwaysOnTop = True
form.Resizable = False
' ***** THIS LINE HERE ****
form.SetOwner(B4XPages.GetNativeParent(B4XPages.MainPage.wMain))
' *************************
End Sub