.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

C++ Q&A: Stopping Screen Savers, Detecting Screen Resolution, Adding Status Bar Buttons

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

More Related Resource Links

Setting Screen Resolution



  I am developing a website in asp.net.How can i make my web pages view same in different screen resolutions.I am using 1024*768 resolution

Screen Resolution.



I am developing a web site which is targeted for 1280x800 screen resolution.

Right now i developing the site in 1024x768 resolution.

I am using percentages only with respect to width & height.

Please help me in achieving this for 1280x800 resolution.

Thanks is advance.


Using Windows 7 my screen resolution changed.

My screen resolution changed to 1280 X 720.The relavent sreen resolution section in windows only now allows me a max of the above.I am using NVIDIA Ge Force 9800GT graphics and ASUS VW220 monitor.Will appreciate any help.Cheers.    

ajax modalpopupextender panel width in different screen resolution

I have a modal pop up window I want to fix the panel width, but  when screen resolution is changed then panel width is also changed and the content is shown out of pop up window. Is there any way to fix the height and width keep fixed in different screen resolutions ?  

Fixed Div and Screen Resolution


Hi All,

I am using Visual Studio 2008 + Enterprise Library 4.1 + SqlServer 2008 for development. I have a fixed div which I am using as a footer in my application. the CSS code is below...Problem is that if I browse the application on 1024 x 768 pixels it works great but when i change the resolution up to 1280 x 800 pixels the image inside the div change its position. I want this to appear same on every resolution...any suggestions or workaround.

     bottom: 0px;  
     left: 91px; 
     width : 783px;

I have a master page where i've defined this div and below is the HTML code.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <link href="../App_Themes/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/

Screen resolution issue in MOSS 2007



I have designed the SharePoint landing page with screen resolution of 1024x768. The layout is desined with 3 column. The header images are designed for fixed size for the above resolution only.
It looks good for the users having 1024x768 screen resol. But for few users who have bigger resolution like 1280x720 & wider screens, the header images still shows the same size and thus the body (three column layout) expanded. As a result there is an empty space in the right side of the header.

Is there anyway to get the screen to resize automaticlly for all the users?  


Buttons attached to RoutedCommand are disabled until I click on the screen


I have a WPF usercontrol with several buttons on it that are attached to a RoutedCommand to Navigate.  When the screen loads, the buttons appear disabled until you click on the screen, or press a button.  The control is hosted in a frame, inside of another window, and is loaded using the page's navigation service.  The code for the buttons is below.

      <Button Command="{x:Static local:Commands.RoutedCommands.Navigate}" CommandParameter="{x:Static nav:NavigationLocations.Next}" 
          Content="{DynamicResource ButtonText}" Style="{DynamicResource MainButton}

Converting windows form to bmp - image crops when the screen resolution is changed


I am converting windows form to a bitmap file using   DrawToBitmap method.  My code looks like this.

            Dim wid As Integer = 760 '  Me.Width
            Dim hgt As Integer = 780 ' Me.Height
            Dim bm As New Bitmap(wid, hgt)
            Me.DrawToBitmap(bm, New Rectangle(0, 0, wid, hgt))
            bm.Save(CurDir() & "\sample.bmp")

This code work fine on desktop/laptop with the screen resolution 1024 x 768  or above.   If I use app on a table pc – with the screen resolution is 800 x 480, the image gets cropped. 
Any suggestion or alternate mode.


How to change screen resolution to 960*600 or 1366*768

I'm developing a full scrren game for a customer. My customer require to change the screen resolution to 960*600 or 1366*768, I 've download some sample code on Internet but they can only change the screen resolution to 800*600 or 1024*768. Please help me.

SharePoint 2010 screen resolution


We are design page layouts for SharePoint 2010 web site using Divs. What screen resolution should we go for? 1024 * 768 or 1440 * 900?

For what screen resolution, SharePoint 2010 has been designed?


Resizing cotrols based on screen resolution


I have a issue where I need to resolve quickly

I have a div element and within the div element I show a gridview.

The gridview is being rendered with the help of template fields.

I am using

<asp:table width 100%>



           item is bound here


 </asp:table >


 All this is shown within a div element.

I actually have set the width and height of the gridview by setting the height and width of the div element.

However when the screen resolution changes then there is a lot of space left on the bottom and to the right.

Please help..I have gone through other posts and tried setting the height on the onload function but the height is fixed and only a part of the data is shown , one cannot see the entire data.

In my case setting a fixed width and height of the div element(which is being done in CSS) causes the gridview to be small but the entire data is scrollable...

How to detect user's screen resolution


Hello all,

I am using a asp:Label control and I need to set it to visible if the screen resolution of the user is nore then 1000 pixels.

How do I do that?


Adjust application window size per screen resolution on different computers


I have built an  application which calls two dialog boxes defined in a .rc file.

When this application was run on a computer with a screen resolution of 600 x 800

the dialog boxes were not fully displayed.  How can I automatically adjust for different screen resolutions?

Snap It! - How to take screen shot using .Net

We all would have used snap shots (screen shots) to illustrate bugs or behavior or something that others could understand by seeing them. For taking snap shots we just hit the "Print Screen" key and copy it to Ms Paint and save it. Ever wondered how to programmatically take a snap shot? Then this article is for you.

PDA Keyboard v1.0 Light Edition - Full Screen Keyboard

The default keypad on Windows Mobile is not at all finger friendly, there is no way you can use it with your fingers. I have trouble using the stylus with it too. But there are many freeware option available to make the SIP ( Software Input Panel - check the Glossary ) finger friendly. Some of these are HTC Diamond keyboard, Blimkeys, PocketCM Keyboard and then now we have PDA Keyboard v1.0 Light Edition from pdamedia.biz. When you hit the blue button it goes into fullscreen mode , then you can use both your hands for typing.

Upload a Print Screen?


Is it possible to Print Screen and then immediately Paste into a .NET app and upload to a server?  I'd like to skip the step of the user having to first paste the screen into an image program and save as a jpg, gif, etc.  Thanks!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend