Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Opening a window in full screen mode

Opening a window in full screen mode

Scheduled Pinned Locked Moved C#
csharp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Umair Ahmad khan
    wrote on last edited by
    #1

    well i want to open my window in full screen mode. i mean only client area should be displayed and also i want to change the resolution of computer through code .. like when my application runs it change the computer resolution to my desired resolution :) is it possible in c#. what comes in my mind as a biggner programer .. i set size to 810 x 610 and set location manually to -10,-10 but i don't think it is a good and proper solution :) so if there is any other way to do this please tell me. In short words :) i want that my application covers the whole screen area no metter what resolution is been used

    G N 2 Replies Last reply
    0
    • U Umair Ahmad khan

      well i want to open my window in full screen mode. i mean only client area should be displayed and also i want to change the resolution of computer through code .. like when my application runs it change the computer resolution to my desired resolution :) is it possible in c#. what comes in my mind as a biggner programer .. i set size to 810 x 610 and set location manually to -10,-10 but i don't think it is a good and proper solution :) so if there is any other way to do this please tell me. In short words :) i want that my application covers the whole screen area no metter what resolution is been used

      G Offline
      G Offline
      Gary Thom
      wrote on last edited by
      #2

      How about setting the form border to none and size to maximize? Gary Thom DYNAMIC LINKING ERROR: Your mistake is now everywhere.

      W 1 Reply Last reply
      0
      • U Umair Ahmad khan

        well i want to open my window in full screen mode. i mean only client area should be displayed and also i want to change the resolution of computer through code .. like when my application runs it change the computer resolution to my desired resolution :) is it possible in c#. what comes in my mind as a biggner programer .. i set size to 810 x 610 and set location manually to -10,-10 but i don't think it is a good and proper solution :) so if there is any other way to do this please tell me. In short words :) i want that my application covers the whole screen area no metter what resolution is been used

        N Offline
        N Offline
        Nemanja Trifunovic
        wrote on last edited by
        #3

        Umair Ahmad khan wrote: like when my application runs it change the computer resolution to my desired resolution Don't. Your user might not have enough privileges to accomplish this operation. Besides, it is considered a bad practice to programaticaly change user's settings.


        My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

        1 Reply Last reply
        0
        • G Gary Thom

          How about setting the form border to none and size to maximize? Gary Thom DYNAMIC LINKING ERROR: Your mistake is now everywhere.

          W Offline
          W Offline
          Werdna
          wrote on last edited by
          #4

          Here is what I do in OnLoad event of the form: FormBorderStyle = FormBorderStyle.None; TopMost = true; Rectangle rect = Screen.PrimaryScreen.Bounds; Location = new Point(0, 0); Size = new Size(rect.Width, rect.Height); and it works perfectly for me.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups