Events bewteen and MDI parant and an MDI child form

Events bewteen and MDI parant and an MDI child form

Post by hirf-spam- » Sun, 29 Aug 2004 22:05:45


* Scott Haldi via .NET 247 < XXXX@XXXXX.COM > scripsit:

In your main form:

\\\
Dim LoginForm As New LoginForm()
If LoginForm.ShowDialog = DialogResult.OK Then
If LoginForm.LoginSucceeded Then
UnlockMe()
Else
...
End If
Else
...
End If
///

--
M S Herfried K. Wagner
M V P <URL: http://www.yqcomputer.com/ ;
V B <URL: http://www.yqcomputer.com/ ;
 
 
 

Events bewteen and MDI parant and an MDI child form

Post by Cc » Sat, 23 Oct 2004 23:38:29

if u need to do more call to parent from child , I suggest u pass the ME as
parameter to child (remenber u need to set modifiers to public for parent
object u want to access )






Hi. I have a vb.net windows application that displays form1 as an MDI parent
window. An MDI child logon form is also displayed when the application is
executed which accepts a username and password to access the application.
All of the controls on Form1 are ghosted so that the application can not be
accessed until a valid logon is detected. I would like to raise an event (or
notify Form1) when a successful logon has been performed from the MDI child
form so that I can enable or un-ghost the controls on From1. Any
suggestions?

--------------------------------
From: Scott

-----------------------
Posted by a user from .NET 247 ( http://www.yqcomputer.com/ )

<Id>hu3UUtilaEmgMHkvXB0xHg==</Id>