Solved

calling EXE in Full SCREEN

Posted on 2004-09-19
9
388 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now