Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top level form only flashes and disappears
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01295706
Message ID:
01296036
Views:
15
So, where is your READ EVENTS code located?

>Tracy,
>We use a data driven menu system, developed in house, that loads the system menu. This system controls user access security and lots of other stuff and has worked well for many years.
>
>It reads a memo field in the menu table and runs it with a macro:
>
mCommand = alltrim(menu.cmd)
>&mCommand
>The command in this case is simply: DO FORM CAT
>
>After reading your post I tried putting a command button on the main form with the same command and the form works properly. I guess I could change our menu program to create a public var (maybe with sys(3)) to hold a name link then hold that somewhere. I was thinking about giving the user a link to all the open forms anyway.
>
>Thanks for the input.
>John
>
>>How are you calling the form? Are you using something similar to:
>>
>>DO FORM myform NAME omyform LINKED
>>
>>Sounds like the variable you are storing the form in is going out of scope. Try making it public and then releasing it when form closes and see if you have different behavior to narrow down the problem...
>>
>>
>>>I have a new Modeless form with DataSession = 2, BorderStyle = 3 Sizeable.
>>>
>>>If I set the form.Desktop = .T. the form works, I can resize it and I can move it anywhere on the screen. In other words, it works just fine.
>>>
>>>If I set DeskTop = .f., and ShowWindow = 2 (Top Level) the form only flashes and disappears as though I didn't have the read events.
>>>
>>>Where did I go wrong?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform