>I put myform.visible = .t.
> myform.show()
> read events
>
>The form flashes then goes right back to the main form.?
>
>Simple project with one prg one .vcx with two classes based on forms
>
>The first form is the main form and the second is whatever.
>The first form loads fine with from .prg but when
>I click on a command button to activate the other form with
>
>myform2 = createboject('form2')
>myform2.visible = .t.
>myform2.show()
>read events
>
>
>it just flashes
>and goes back to main form.
>
>Pretty basic I know but just getting started.
>
>thanks
If you already have a READ EVENTS active, adding a second one has no effect. Make the form Modal by doing a myForm.Show(1).