Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form wont stay active
Message
From
11/05/2001 17:14:51
 
 
To
10/05/2001 17:16:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00506003
Message ID:
00506446
Views:
14
>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

No problemo...we all have to start somewhere.

First, IMHO if you have a second form called from a prior form (as in this case
) you should make the second one modal. This is because you are doing something that interrupts the first form, and the user should deal with that immediately and get it out of the way. Again, that is only my opinion.

So, make the second form modal (myform.show(1) ), and remove the READ EVENTS in the first form. You should only have one READ EVENTS firing at any given time.

Hope that helps.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform