Computer Science Canada form?? |
Author: | pavol [ Mon Feb 06, 2006 3:02 pm ] | ||
Post subject: | form?? | ||
hi i have a program and in it i'm hiding a form. so when someone clicks on a button i have the following code
now when im on a different form and i want to show the original form: ???.Show what procedures are called when that original form shows. i know Form_Load probably isn't called because the form was just hidden not unloaded. so does it call Form_Activate or Form_GotFocus. the reason im asking is because i need something to happen when that form is shown and i can't seen to get it to work. any help appreciated |
Author: | Tony [ Mon Feb 06, 2006 3:34 pm ] | ||
Post subject: | |||
probably Form_GotFocus, but you should test it out with like a message box or something just to make sure. Better yet
Where you call other form's method directly. |
Author: | pavol [ Mon Feb 06, 2006 3:46 pm ] |
Post subject: | |
thanks Tony you gave me the idea to use message boxes to check and so i put one in each of the form procedures (the ones i though were relevant) activate, resize, paint, initialize, load, gotfocus and it turns out that for some reason the only one that gets called when i show a form from hiding is form_activate. and so my program works now. regardless, thanks for the help |