Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus method changes visibility of the form
Message
From
05/03/2007 08:41:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01200689
Message ID:
01200693
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
>Following code part raises a "cannot change modality of visible form" error, because of setfocus method change visibility of the form from hide to visible. To solve this problem I manually change the form to hide mode manually. Is there any alternative way to fix this problem.
>
>Best regards
>
>Ali Altun
>
>
>do form "form1.scx" name oMyForm noshow
>oMyForm.text1.setfocus()
>** oMyForm.hide = .T. && this line is used to fix the problem
>oMyForm.show(1)
>
do form "form1.scx" name oMyForm noshow
oMyForm.text1.tabindex = 1
oMyForm.show(1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform