borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Draft Mode Printing on CR8)Next Topic (Change Legend Text in CR8.5) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Vb6 Problem
Poster Message
dorival
Level: Trainee

Registered: 14-02-2006
Posts: 3

icon Vb6 Problem

I'm new with vb and I creted my first program, it's working well, but when I close it and press Ctrl + Alt + Del it is still there in the programs list as if it was still open, if I open the program and close again and press Ctrl + Alt + Del it will be shown twice in the list, it looks like the program i hidden when I close it, but never closes.

I tryed using some codes like this to close all forms, but I don't know wht's the problem.

Can anyone help me?

Dim f As Integer
f = Forms.count
Do While f > 0
Unload Forms(f - 1)
If f = Forms.count Then Exit Do
f = f - 1
Loop

or

Public Sub UnloadAllForms(Optional FormToIgnore As String = "")

Dim f As Form
For Each f In Forms
If f.Name <> FormToIgnore Then
Unload f
Set f = Nothing
End If
Next f

End Sub

22-03-2006 at 03:39 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Vb6 Problem

Is this happening if you only start your app, and then close it without opening anu other form but main? If yes, then child forms are not the issue here. Are you ending app with END statement or with Uload Me? Do you use any 3rd party objects (which do then to be buggy) that you dont release/destroy?

____________________________
If you find the answer helpful, please mark this topic as solved.

22-03-2006 at 10:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Vb6 Problem
Previous Topic (Draft Mode Printing on CR8)Next Topic (Change Legend Text in CR8.5) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder