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. Web Development
  3. ASP.NET
  4. Change Screen Resulotion

Change Screen Resulotion

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
2 Posts 2 Posters 1 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.
  • R Offline
    R Offline
    Rinki Mukheraji
    wrote on last edited by
    #1

    When change screen resulotion through code in asp.net with code then no probleam. After publish and run on localhost and change screen resulotion then show error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. please tell me how solve this probleam.

    G 1 Reply Last reply
    0
    • R Rinki Mukheraji

      When change screen resulotion through code in asp.net with code then no probleam. After publish and run on localhost and change screen resulotion then show error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. please tell me how solve this probleam.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Rinki Mukheraji wrote:

      When change screen resulotion through code in asp.net with code then no probleam.

      That only works in the special case where the server computer and the client computer is the same physical computer, i.e. you are browsing on the server to the same server, and when you are using the same user account for browsing that the server is using for running the server code, e.g. when you are running the site in Visual Studio. For any other sitation your code would try to change the resolution of the user interface on the server computer, not the client computer. As the web server application is running without a user interface, this is not possible.

      Rinki Mukheraji wrote:

      please tell me how solve this probleam.

      Very simple: Don't try to change the screen resolution in a web application. It's not possible.

      Despite everything, the person most likely to be fooling you next is yourself.

      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