Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form not closing fully

Status
Not open for further replies.

ragu111

MIS
Aug 15, 2002
129
AE
i have comand buttom (close) on a form with below code:

on cmdClose_Click
form1.hide
End Sub

when i click the buttom for form is not closing. i tried with form1.close also but no use and the mouse shows busy

can anybody help on this

Ragu-
 
Hide only makes the forms visible property false, you need to use Unload Form1, and make sure all code has ceased execution on the form.

Hope this helps.
 
In the form to be closed, code Unload Me. But before that, make sure you've set all classes and forms = Nothing that might have been instantiated in the form. If any such object remains instantiated, the form won't fully unload.

Pete
 
Unload function is working.

now the problem is. when i run the programme i have a main form on which u have menu from where i select the data entry form. when i Unload the data entry form the courser shows busy. whis is this?

Ragu-
 
Have you got mousepointer = vbhourglass anywhere in your code?

Transcend
[gorgeous]
 
Well I can't really help you unless you show me some code or something. Is the main form an mdi form?

Transcend
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top