Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return either dataset or integer from function
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00892206
Message ID:
00898393
Views:
16
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform