Results 1 to 7 of 7

Thread: How to Run a C Program in Full Screen

  1. #1
    Join Date
    Aug 2005
    Posts
    82

    How to Run a C Program in Full Screen

    I hope if there is any code to change or trigger the Command Prompt to be in full screen mode? I searched it on many sites but coudnt find one. Hoping that there is an answer for it. Thank you

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291
    After some googling I found it very easily. Take a look here.

  3. #3
    Join Date
    Dec 2007
    Posts
    1,736
    Do you google, found this another link.
    Also on MSDN found this link

  4. #4
    Join Date
    Aug 2005
    Posts
    82
    It seems that the codes there are not supported in C.


    Are you sure that this codes are supported in C? I doubt

  5. #5
    Join Date
    Dec 2007
    Posts
    1,599
    It is possible to use it in C code. You just have to include windows.h. Many times I have used Windows API in C applications, I hope that you can as well.

  6. #6
    Join Date
    Jun 2006
    Posts
    623
    Check this code for fullscreen.

    Code:
    include <windows.h>
    
    
    void "whatevernameyouwanttogiveit"()/* function definition for 
                                                             fullscreen */
    {  keybd_event(VK_MENU,
                    0x38,
                    0,
                    0);
        keybd_event(VK_RETURN,
                    0x1c,
                    0,
                    0);
        keybd_event(VK_RETURN,
                    0x1c,
                    KEYEVENTF_KEYUP,
                    0);
        keybd_event(VK_MENU,
                    0x38,
                    KEYEVENTF_KEYUP,
                    0);
    }

  7. #7
    Join Date
    Aug 2005
    Posts
    82
    It is now working, thanks for all the help guys. Cheers

Similar Threads

  1. Replies: 6
    Last Post: 10-05-2011, 10:11 PM
  2. Replies: 4
    Last Post: 17-01-2011, 03:07 PM
  3. YouTube unable to open in full screen receiving black screen
    By DON-a-Duck in forum Technology & Internet
    Replies: 3
    Last Post: 24-11-2010, 11:57 PM
  4. Block full internet access to a program
    By Ishmael in forum Windows Vista Network
    Replies: 4
    Last Post: 23-11-2010, 02:34 PM
  5. Full Screen Games but no full screen on Windows Seven
    By Puloma in forum Monitor & Video Cards
    Replies: 6
    Last Post: 11-09-2010, 06:55 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,902,365.49749 seconds with 16 queries