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?
Printable View
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?
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!
Do you have any subclassing? It'll cause VB to error, when the program is ran in the IDE.Quote:
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?
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 :confused:
Hmm....
Try to single out the code that may be causing it.
ok....its the odmenus thats doing it
Have you put a STOP at the start of the routine, and "walked" through it?
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
VB is anal.
:p
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