display

how to get monitor/display device names using WinAPI/C#

I am working an application in C#/WPF and wanted to get the list of all attached display monitors. I used the Screen class and successfully got the list but now the list is having each monitor name as ".\Display1\XXXXXXXX" etc . which is not readable. However, My Nividia control panel list them as proper names. So can any one tell me how...

Is there a way to detect Layout or Display changes in WPF?

Hello! I am trying to check how fast the Frame control can display a FixedPage object when it is assigned to Frame.Content property. I plan to check the tick count before and after the assignment to the Content property. Example: int starttime = Environment.TickCount; frame1.Content = fixedpage; int endtime = Environment.TickCount; ...

C#: How to make a form remember its Bounds and WindowState (Taking dual monitor setups into account)

I have made a class which a form can inherit from and it handles form Location, Size and State. And it works nicely. Except for one thing: When you maximize the application on a different screen than your main one, the location and size (before you maximized) gets stored correctly, but when it is maximized (according to its previous st...

PHP If else statement that a database record is empty it will display a default picture.

Hi basicly I am trying to create a simple IF statement that shows a default picture if one hasn't been entered in to my database. I am using server to store my picture and a database to store the file name, so I can get the image to display if it has a file name in the db but I want the If statement to say if the record is empty display ...

PHP No response Issue

I have this piece of code I'm trying to get to display but no matter how I do it I just don't get any response or error whatsoever. <?php $day = array("Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"); //$month[]= array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre"...

writing arabic text in opengl

I want to write arabic text in my opengl program using freetype 2 how I can do it any one can send me asource code or show me the way or even any modification on nehe lesson 43 to write arabic in opengl which explain using freetype to display the arabic text ...

Liferay portal theme issue

Hi there, occasionally when hitting the landing page after signing in, the users personal space is displayed instead of the default guest page. This is does not happen often, but my boss does not want it happening. I am hard pressed for an explanation. ...

Open Excel file for reading with VBA without display

I want to search through existing Excel files with a macro, but I don't want to display those files when they're opened by the code. Is there a way to have them open "in the background", so to speak? ...

Size, Type, and Brightness of Display for Healthy Development

If you stare at a monitor for 8-12 hours a day looking at code, I have a couple questions for those that may have researched the health factors of this or have tried a few options. To be easy on the eyes, can a monitor be "too big"? Is there a particular type of display technology over another that reduces eye fatigue? How bright shoul...

Creating columns of text with a variable width font.

I'm trying to create coloumns of text for a C# app that will be running on MSN Messenger. I'm having trouple getting everything to line up. Here's an example of the output that I want: 1) Pizza Hut 123 Fake St. 2) Domino's Pizza 123 Fake St. 3) The Che...

Displaying CSS images in div updated by Ajax

I wonder if anyone can help. An HTML div in a page of mine contains a tree control which is shown or hidden depending upon a button pressed by a user. The button triggers an Ajax event which sets a variable on the server to show or hide the tree so that the state is persisted. But here's the problem; when the tree is re-displayed, the i...

Why does IE7 display my webpage incorrectly?

If you look at www.kwikhousesale.co.uk in any FF, Google Chrome, Opera, IE8 etc. it displays fine. However, when using IE7 all the text shifts to the right resulting in much of the text appearing off the page. Please could somebody help me to resolve this issue? ...

Display vs. Search vs. Sort strings in a database

Let's say I've got a database full of music artists. Consider the following artists: The Beatles - "The" is officially part of the name, but we don't want to sort it with the "T"s if we are alphabetizing. We can't easily store it as "Beatles, The" because then we can't search for it properly. Beyoncé - We need to allow the user to be...

Is the number of Pixels per Inch standard on all Windows PC displays? (LogPixelsX) in the GetDeviceCaps WinAPI call.

By Windows PC displays, I am not referring to Windows CE, or handhelds, etc. Clarification Some folks below mistakenly thought I was asking what the DPI (dots per inch) was on monitors. What I'm asking for is the value for LogPixelsX in the GetCaps API call : LOGPIXELSX Number of pixels per logical inch along the screen width. In th...

High End Monitors (LaCie/EIZO/NEC) worth it for daily development?

Since quite a few here spend 10+ hours a day in front of their monitors and stress their eyes with it would you consider it worthwhile the investment to go with a LaCie, NEC or EIZO display instead of the common HP/DELL office screens? The biggest advantage even if you do not work with imaging seems to be the build in colorimeter to wor...

sIFR - line height issue in Firefox 3 only?!

I'm trying to use sIFR to create a tag cloud effect for a homepage I'm working on. There are 4 lines of text, with various font sizes and font colours within each line. I suspect sIFR purists would say this creates too many movie clips to be safe, but it really is the effect we're looking for and it's the best option we have which is g...

Displaying information with fields and values: ListView, GridView, FormView???

I just want to show some data for a user (name, email, address, identifier, entry date) on an asp.net page. Which ASP.NET control would be the most suited for this? ...

"No X11 DISPLAY variable" - what does it mean?

Hello, I am trying to install a program (a Java application) on my linux machine (I am using Slackware). I have received the following mistake, and I do not understand it. Could you advise me how to approach the problem? I am not sure whether this is a kind of question I could ask here, because it is not exactly a programming question, ...

Reverse Display for Eclipse

Does anyone know of an easy way to switch Eclipse into a reverse display without having to manually change all the color settings, similar to Emacs --reverse-video? Thanks! -Max Addendum: I encountered a few more interesting articles around this topic. Nothing for Eclipse though. Slashdot: Best Color Scheme For Coding, Easiest On the...

DataGridView doesn't draw fully when shown

I have an application that uses DataGridView in two different locations. In one location, the DataGridView shows everything fine. In the other location, whenever the form containing the DataGridView is initially loaded, only about half of the visible portion of the DataGridView is actually drawn; through the rest of the DataGridView, t...