Tags down


how to change desktop screen resolution

By : Sandilya
Date : October 17 2020, 11:12 PM
I hope this helps you . This is a similar question to "I want to change the clock" or "I want to change the user password" or "I want to change the Windows theme". An application program has no business making such system configuration changes, accordingly it isn't wrapped by the .NET framework.
You can do it, but it will require P/Invoke. Use ChangeDisplaySettingsEx(). Not exactly easy to use, nor very safe to use. Lots of LCD panels only look good in one particular resolution, the one that the user selected. Picking a resolution that the monitor cannot support produces a black screen and the three-finger salute. Smoke in the good old days.
code :

Share : facebook icon twitter icon

Desktop Screen and Mobile Screen with same Resolution, but different Results

By : user2546254
Date : March 29 2020, 07:55 AM
hop of those help? I am trying to understand why if I have a Webseite working on 1920px width and I have smartphone with 1920px resolution, it will display different? , Solution for me was simple:

How to make a c# desktop application run on any screen resolution?

By : Jesse Jaimes
Date : March 29 2020, 07:55 AM
hope this fix your issue In my experience with Winform and WPF, to make things scalable to most screen resolutions, you should use some sort of grid or "flow" layout.
In Winforms, this is best accomplished by using a TableLayoutPanel control. The layout panels allow you to distribute spacing by percentage and absolute values (much like a table or div in a webpage).

When I change screen resolution for desktop user after mobile user resolution Navigation Menu Item not display inline

By : ManRay
Date : March 29 2020, 07:55 AM
I wish this helpful for you I am trying to build responsive toggle navigation menu for mobile user. When screen resolution on screen for mobile user I click on Toggle Navigation Box its display navigation items block and when I click again Toggle Navigation Box its display navigation items none. But when I change screen resolution for desktop user Navigation Menu not display inline. , Just add
code :
function print(message) {

let myNavBox = document.getElementById("navBox");
let myNavLinks = document.getElementById("navLinks");

myNavBox.onclick = function() {

  if (myNavLinks.style.display == "block") {
    myNavLinks.style.display = "none";
  } else {
    myNavLinks.style.display = "block";

body {
  background: #191970;
  font-family: sans-serif, serif;

h1 {
  font-family: 'Prata', serif;
  text-align: center;
  font-size: 35px;

ul {
  list-style: none;
  padding: 0;

li {
  margin-bottom: 10px;

a {
  text-decoration: none;
  color: #000;
  font-size: 25px;

#navBox {
  width: 50px;
  height: 50px;
  border: 2px solid #c0c0c0;
  background: #7b68ee;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 15px;
  text-align: center;

li:hover {
  background-color: #6a5acd;

#navLinks {
  display: none;

/******** Responsive ********/

@media screen and (min-width:660px) {
  body {}
  #navLinks {
    display: block!important;
  #navBox {
    display: none;
  li {
    display: inline-block;
    margin-right: 15px;
<html lang="en-US">

  <meta charset="UTF-8">
  <title>Toggle Navigation</title>
  <link href="https://fonts.googleapis.com/css?family=Prata" rel="stylesheet">
  <link rel="stylesheet" href="style.css" />


  <nav id="nav">
    <h1> Toggle Navigation Tutorial </h1>
    <div id="navBox" title="Toggle Navigation"> ------- </br>
      ------- </br>------- </br>
    <div id="navLinks">
      <ul id="topNav">
        <li><a href="#">Home</a></li>
        <li><a href="#">Portfolio</a></li>
        <li><a href="#">Projects</a></li>
        <li><a href="#">Contact</a></li>

  <script type="text/javascript" src="script.js"></script>


Change Resolution Of Form Based On Screen Resolution ( without changing monitor resolution and using Maximized screen op

By : Beena Yadav
Date : March 29 2020, 07:55 AM
like below fixes the issue I know it's stupid but... did you try to set control "anchors"?
They allows your control to resize when you resize your form, maybe can help you, also think about using scrollbars

How to get the actual desktop screen resolution in wpf?

By : Jacob Anam
Date : March 29 2020, 07:55 AM
will be helpful for those in need I am developing a kinect application using WPF. Now I need to get the actual desktop screen resolution so that I can scale the area to take screenshot for any laptops. I have tried PrimaryScreenWidth, PrimaryScreenHeight, FullScreenHeight, and all that, but none of them give me the ACTUAL resolution. For example, if I have 1920*1080, those above fields will give me some other values. , Just use this:
Related Posts Related Posts :
  • How can I get back a previously created Excel ListObject?
  • What API can be used to read OAB Files?
  • In linq to entity, how to retrieve objects matching a list of conditions without looping?
  • RESTful web service in C# code
  • C#, Process.Start hide?
  • Multi resolution
  • Alternatives for Crystal Report
  • Lucene.NET, StandardAnalyzer, stopwords and thread-safety
  • How to implement CCAvenue payment gateway option
  • Silverlight and WCF: NotFound error!
  • C# How can I get a list of country codes?
  • Intellisense - Javascript in a string
  • How to change the opacity value of a 3D object
  • Assembly.ReflectionOnlyLoadFrom not working
  • C# Audio - How to time stretch (different tempo, same pitch)
  • Getting certain lines of text c#
  • Can we display Hyperlink from Javascript alert on ASP.NET Page?
  • Can you see programmatically how much amperage a USB device is requesting in windows?
  • What is a way to do a Generic Repository with Entity Framework 4.0 where I have function imports?
  • C# How to determine if a date is within 180 days of now
  • Programmatically hiding properties in a PropertyGrid
  • How do I get a list of fields returned by an OdbcDataReader?
  • ASP.Net Creating Server Side Posting to external website with redirect
  • Adding a tool bar to a web page
  • Convert Audio file into MP3 format using C#
  • Check if a windows service is running?
  • Assembly re-direction in .NET
  • Parse and filter javascript array
  • How to handle a generic dictionary whose types are unknown and don't matter?
  • Distribute images with C# Setup project
  • Is there a way to publish rdl reports programmatically with C#?
  • How to call base.base.method()?
  • How to install Emgu CV wrapper?
  • Interview question - c#
  • .NET Remoting client config creates local object, not remote
  • Is there a possibility to differ virtual printer from physical one?
  • Print barcode which has high scan rate
  • Query string value having "&"
  • Which is best for perfomance?
  • Can we make overloaded controller method in ASP .NET MVC
  • Nested loop in StringTemplate
  • How to get SSID and RSSI for Win7 using C#
  • Send messages to applications on the network (.Net)
  • Detect and prevent/delay windows mobile power off
  • How X509 Certificate renewal does not impact the code?
  • Silverlight: How to make my custom control act like a button
  • C# basic Dictionary Ordering Just need to clear an error
  • Common c# idioms including coalesce ?? operator
  • Why Does Thread.CurrentThread.CurrentCulture Change between Page Rendering and HttpModule.PostRequestHandlerExecute?
  • COM Exception 0x8004005
  • How do I show a message box from inside a class in a class library?
  • LINQ Distinct Query
  • Issue with number guessing game c#
  • Usage of a using statement
  • Building a forms system using DDD
  • How can I programmatically tell in C# if an unmanaged lib is x86 or x64?
  • How do I get an Excel range using row and column numbers in VSTO / C#?
  • .NET 4.0 Memory Mapped Files Performance
  • db4o Indexing problem - Not Working? Poor performance?
  • Realtime Console Output Redirection using Process
  • shadow
    Privacy Policy - Terms - Contact Us © bighow.org