Yin Lai


I am using visual foxpro 7.0. I need to set my program to full screen and limit the user option. That's mean, user just can use that computer to key data using the program and cannot do anything else (cannot open other program) except if they log out. Hope some expert can help me solve the problem. Thank you very much.



Re: Full Screen Question

dni


If you are using a form you mey use thisform.WindowState = 2 and/or modify in properties window, BorderSyle <> 3, Max Button =.F., MinButton = .F..You may solve "running access" setting user rights from OS not from vfp.You need only to log as admin and change user settings..







Re: Full Screen Question

Naomi Nosonovsky

Try this code from David Frankenbach from another site:

with thisform
  .Top = -100
  .Left = -10
  .Height = sysmetric( 2 ) + 100 + 10
  .Width = sysmetric( 1 ) + 10 + 10
endwith






Re: Full Screen Question

Yin Lai

Thank you for the answer, but the answer still cannot solve my problem. What I need is the form become full screen (like online game) the screen didn't show the taskbar and the user cannot close the program except if they log out.





Re: Full Screen Question

Naomi Nosonovsky

Did the code I showed open the form for you in full screen mode

What exactly do you want for your second question





Re: Full Screen Question

Yin Lai

Thank you for your reply and answer.I had tried the code but also not the result that I need. What I mean in the second post is when we run the program(although set to maximum screen) still can open or click other program from the computer. But can I just want the monitor display full screen like the full screen when we play online game or watch movie.





Re: Full Screen Question

dni

What are you trying to see in full screen a form a window You are running a exe file or vfp






Re: Full Screen Question

Naomi Nosonovsky

You can achieve your desired functionality by disabling Alt+Tab, etc. keys combinations and hiding Start menu, etc.

I haven't have a need for this myself, so you may need to do some research in this direction.





Re: Full Screen Question

Markish

Hi,
I think <http://www.codeproject.com/win32/AntonioWinLock.asp> can be helpfull. Download the DLL and go through the VB example given in that. I think it solves your requirement.

Best regards,

Markish






Re: Full Screen Question

Yin Lai

Thank you very much.This is what I want. This wedsite really help me. Thank you.





Re: Full Screen Question

Naomi Nosonovsky

Thanks, great link.





Re: Full Screen Question

Christof Wollenhaupt

I haven't tried this in years but this trick should still work. Open System.INI and search for the line starting with shell=. The default value is explorer.exe. Replace this with the full path to your application. After a renoot Windows runs only your application when you start up. There's no start menu, etc. because that's part of Explorer.





Re: Full Screen Question

Yin Lai

Hello, can you tell me how to download the DLL file Because I can not find it,. Thank you.





Re: Full Screen Question

Naomi Nosonovsky

Did you create an account on that site





Re: Full Screen Question

Yin Lai

Yes, I can download the source file but i didn't found the DLL file.