Re: Closing form Problem
- From: "Joseph Byrns" <josephbyrns@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 Nov 2005 11:15:35 -0000
If you set the MinimizeBox property of the form to false, it will always
have an OK button instead of the X.
<savvaschr@xxxxxxxxxxxxxxxx> wrote in message
news:1132224605.437243.120680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello
> I would like to ask what is the "correct" way to show and then to
> close a form.
>
> In my application some forms I show them with the .show event and
> other
> with the .ShowDialog .. but if the user press the X button on the form
> the form is not
> closing and I ve try to put a breakpoint in the closing event but the
> event dont rise when the X button is clicked.
> The only way i found is to put a button on the screen and in the click
> event of the button execute me.close, but i dont want to put an extra
> button in each form, and i dont know how to prevent a user from
> clicking the X button of the screen.
>
> So what can i do??
> Shall i display the forms as .Showdialog and close them on the
> .ondeactivate event?
> Or is there another way of closing them.
> Thanks a lot
> Savvas
>
.
- References:
- Closing form Problem
- From: savvaschr
- Closing form Problem
- Prev by Date: Closing form Problem
- Next by Date: Re: Connections CE and Active Sync
- Previous by thread: Closing form Problem
- Index(es):
Relevant Pages
|