Hi Simone,
To stop the loading of the form, throw an exception (inside of a try/catch) in the Form's Load.
>Hi Bonnie
>I note somewhere in my deluge of recent reading something about a difference between .Net and VFP that if a VFP.Init() returns .F., it stops the form being instantiated? So in my mostly ignorant state with .Net, if this is a data selection form and I'm calling the business object to Getdata() in the form Load(), but it returns none, can I stop a blank form being displayed? It seems a waste of resources to have to paint a form, then get no data, display a messagebox, then destroy the form etc.
>
>I hope you get what I'm trying to ask...
>
>Simon
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi