Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a form
Message
 
À
30/05/2002 17:35:35
Ron Hodge
Sebrex Systems, Inc.
Dacula, Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00662780
Message ID:
00663233
Vues:
17
Having the form be modal does make a difference. Thank you for clarifying. What you need to do is create a public function in the modal form to do your checking. The function will return a true, indicating records were found, or false. In your calling program you call the function before the ShowDialog. If the function returns true then execute ShowDialog. If it is false then don't. Here is some sample code:

Dim testDialog As New Form1()
If testDialog.MyCheck() Then
testDialog.ShowDialog()
End If
testDialog.Dispose()


>Yes. It executes the line ME.CLOSE() and continues on its way. There's no error or any indication of action. Almost like there is a Close sub that doesn't do anything. I've also tried mybase.close() and same thing. This is a modal form. Does that make any difference?
>Thanks.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform