Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

calling EXE in Full SCREEN

Posted on 2004-09-19
9
400 Views
Last Modified: 2007-12-19
Hi Experts

I had a VB.net Form having two button and on the click of a button i call an EXE file by this method
   System.Diagnostics.Process.Start("F:\usr\lease.exe")
it works fine
but the problem is that, this exe opens in a small window !
i wish to open this exe in FULL SCREEN windows ,
and this exe is a program file written on Dos Based Foxpro

How ever if i execute this exe from START - RUN - it opens in FULL SCREEN ,window but when i call these exe from VB.net form it does not do so .

Please help me !!!

Thanks
0
Comment
Question by:manishkaushik
9 Comments
 
LVL 1

Expert Comment

by:hagipmc
ID: 12095144
Hi!
Try this one:      

       Dim startInfo As New ProcessStartInfo("F:\usr\lease.exe")

        startInfo.WindowStyle = ProcessWindowStyle.Maximized

        Process.Start(startInfo)
0
 

Author Comment

by:manishkaushik
ID: 12095181
Hi Haqipmc

thanks for your reply !!!!!!!

Its working fine with the exe if its the windows executable (like notepad etc) but the exe which is made on DOS based FOXPRO program they are still opening in the small size windows

One thing i noticed just now , after loading me exe, i have to press ALT+ ENTER key to get it into maximised window !

Please help me

Thanks
Manish Kaushik
0
 
LVL 1

Expert Comment

by:hagipmc
ID: 12095978
 Hi again!

  I've made some research and it's not a problem of .NET. It's a problem of MS-DOS.
In MS-DOS every exe file shoud have a piff file (aka Shortcut to MS-DOS Program in Windows) who sets some properties for the MS-DOS exe file.

  So, all you have to do is to create a shortcut to your exe file in the same directory with your exe (F:\usr\). So right click on you lease.exe file->Create Shortcut. You can name it whatever you want (e.g. lease). Then right click on the shortcut file->Properties->Screen Tab Page
and on Usage group choose Full-Screen. Now whenever you'll execute your exe file from run, command prompt or third party application(.net apps) it will be despalyed in a full screen window. So, your vb.net code can look even like this :

System.Diagnostics.Process.Start("F:\usr\lease.exe")

  Good luck!
 
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 4

Expert Comment

by:srcalc
ID: 12098794
You said that Start-Run would make it fullscreen. Perhaps the shell would do the same. Try this:

Shell("F:\usr\lease.exe")
0
 

Author Comment

by:manishkaushik
ID: 12099137
Hi Haqipmc

Unfortunately , its again not working !!
See the F:\  drive is the network drive in my system , and i had gone to F:\USR|LEASE\LEASE and then i had created a shortcut of the this file in the same location , and i set its properties , SCREEN tab to FULLSCREEN
 but again its opening on the same way !!! i.e. small screen.

and i had triend the way of SRCALC also by doing it by shell command

But its not working !!

Thanks
Manish Kaushik
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 50 total points
ID: 12103005
There might be a setting in the Config.fp.  Something like SCREEN=FULL.  I don't have the DOS version, so its hard to check.

Bob
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question