Victor BA


I have an MDI form and i want to load a Login child form when the application starts up, i thought that would be inside some event, so i checked the Init, Load and Activate events, and just works in the Activate event, but when i close that child form, it shows itself again....i suppose it's normal because (i think) the Activate event fires when the parent form is activated.....but then, how can i do this ...in which event or how

Thanks Smile




Re: Load child form on Activate???

Naomi Nosonovsky


You may use Activate. You just need a flag to load your child form only once, say, add to the main form a new logical property lChildShown. Change Activate to

if not thisform.lChildShown

thisform.lChildShown = .t.

do form ChildForm

endif






Re: Load child form on Activate???

Victor BA

Thank you Smile, that was a good tip.

But when i added the property i saw something...why the new property name (and other elements) change to lower-case , i used a "Sentence case" or Upper case, and still returns to lower-case....is this normal ..can i change it Big Smile jeje






Re: Load child form on Activate???

Naomi Nosonovsky

Yes, unfortunately this is how VFP behaves. It always changes custom properties and methods to lower case. I believe there is a way to control this in VFP9, but I don't remember of hand how to do it. Hopefully someone can explain.

Thanks in advance.





Re: Load child form on Activate???

Victor BA

I just find the way to do it, looking on the internet.

In the "Form" menu, select MemberData Editor, there you can see all the properties and methods (the custom properties are Upper Case) just select the custom property and how to display it Big Smile