Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: canceling accept button


Message #1 by "Abraham Luna \(Attilanet.com\)" <abe@a...> on Thu, 12 Dec 2002 11:08:36 -0500
----- Original Message -----
From: "Peter N. Kipe" <pkipe@c...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, December 12, 2002 12:15 PM
Subject: [pro_vb] RE: canceling accept button


> Set a module-level boolean true in the form accept event if you don't want
> to close the form.  Then in the Form_Unload event, check the boolean -- if
> true, set the boolean false and set Cancel = true, then exit sub.
>
> Pete
>
> -----Original Message-----
> From: Abraham Luna (Attilanet.com) [mailto:abe@a...]
> Sent: Thursday, December 12, 2002 11:09 AM
> To: professional vb
> Subject: [pro_vb] canceling accept button
>
>
> i set the form accept button. in that button click event i have code that
> makes sure the whole form is filled out. if something is missing, i pop up
a
> message box and exit sub. this still closes my form though, how do i
cancel
> it and keep the form open so they can fill in the rest of the values?
>
>
>
>


  Return to Index