\\\
Private WithEvents MyInvoiceForm As Form
Sub InvoiceMenu_Click(...)...
InvoiceMenu.Enabled = False
MyInvoiceForm = New InvoiceForm
MyInvoiceForm.Owner = Me
MyInvoiceForm .Show
End Sub
Sub MyInvoiceForm _Closed(...)...
InvoiceMenu.Enabled = True
End Sub
///
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Agnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In my menu, there is invoice,customer .... etc
> As the user click 'Invoice' , the invoice form is load, then I want to
> disable the "Invoice" menu in the Menuitem, ,so the user can only new one
> invoice form and the user can new another form like 'delivery order'..
etc.
> In such case, I won't use' showdialog'.
> Thanks a lot
> From AGnes
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004