Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open and Close
Message
From
12/02/1997 12:45:46
 
 
To
12/02/1997 07:20:11
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00019399
Message ID:
00020213
Views:
40
>>>I have a form Class open with an OptionGroup. In the click event of the optiongroup I use MY2ndForm=CreateObject("classname")
>>>MY2ndForm.Show()
>>>The second form opens and then it closes right away.
>>>I have put Read Events everywhere with no success.
>>>
>>>Can someone tell me what I am doing wrong.
>>>
>>>Ernest
>>
>>
>>The variable My2ndForm is scoped to the click event of the OptionGroup. When the click event terminates, the variable is released and the form goes away. Make the second form modal and it should work.
>>
>>One other thing...Windows standards state that option buttons should not be used for things like opening other windows. This is the purpose of the command button.
>>
>>
>>Craig
>
>Thank you Craig, I was not thinking of the Object as a variable, your explanation helps me a lot.
>
>Where can I get a copy of the Windows standards?
>
>Thank you again,
>
>Ernest

It's called "The Windows Interface Guidelines for Software Design" by Microsoft Press. ISBN: 1-55615-679-0. You can get it online at www.microsoft.com/mspress or from most bookstores.

There is another book that make good reading "About Face" by Alan Cooper discusses UI design. HIghly Recommended.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform