|
-
Sep 24th, 2002, 06:31 PM
#1
Thread Starter
Addicted Member
VB closes after program closes [resolved]
hey - i've had this problem happen before and i magically fix it but i'd like to know what causes it and how i am actually fixing it
sometimes when i close my program by hitting the X it closes my VB as well
any ideas?
Last edited by aldinator; Sep 24th, 2002 at 06:50 PM.
-
Sep 24th, 2002, 06:34 PM
#2
Yes...me too.
You aren't closing your program, the X that you are hitting is the close for the VB IDE. Been there....done that....got the tee-shirt!
-
Sep 24th, 2002, 06:35 PM
#3
So Unbanned
Re: VB closes after program closes
Originally posted by aldinator
hey - i've had this problem happen before and i magically fix it but i'd like to know what causes it and how i am actually fixing it
sometimes when i close my program by hitting the X it closes my VB as well
any ideas?
Do you have any subclassing? It'll cause VB to error, when the program is ran in the IDE.
-
Sep 24th, 2002, 06:37 PM
#4
Thread Starter
Addicted Member
well hack - thats not it cause when i hit my exit button (coded for "end") it does the same
when i hit the stop button in the vb ide it stops properly
i do have od menus and i think that may be it but it didn't happen before (even though i had od menus then). im very, very confused
-
Sep 24th, 2002, 06:40 PM
#5
So Unbanned
Hmm....
Try to single out the code that may be causing it.
-
Sep 24th, 2002, 06:41 PM
#6
Thread Starter
Addicted Member
ok....its the odmenus thats doing it
-
Sep 24th, 2002, 06:42 PM
#7
Have you put a STOP at the start of the routine, and "walked" through it?
-
Sep 24th, 2002, 06:44 PM
#8
Thread Starter
Addicted Member
ok - i just got it - i wasn't putting the stopodmenus at all parts in which it could close (like the end button)
thanks everyone - by probs solved
does anyone know why it does this though
-
Sep 24th, 2002, 06:46 PM
#9
-
Sep 24th, 2002, 06:46 PM
#10
If you are using subclassing then hitting the VB's Stop button will also cause an error. Infact the only way to exit properly is to
close the subclass in the form_unload event.
A good tutorial about subclassing can be found
on www.allapi.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|