Is using a widescreen monitor in portrait orientation more effective for coding? [closed]

I actually have 3 widescreen monitors in portrait mode and yes, it’s a fantastic way to work. There’s so much less scrolling around and you can fit all your debug / output / reference windows on screen at once. The problem with using two monitors is that you’ll generally be working on one main one … Read more

Find Number and resolution to all monitors

In C#: Screen Class Represents a display device or multiple display devices on a single system. You want the Bounds attribute. foreach(var screen in Screen.AllScreens) { // For each screen, add the screen properties to a list box. listBox1.Items.Add(“Device Name: ” + screen.DeviceName); listBox1.Items.Add(“Bounds: ” + screen.Bounds.ToString()); listBox1.Items.Add(“Type: ” + screen.GetType().ToString()); listBox1.Items.Add(“Working Area: ” + … Read more

Lock (Monitor) internal implementation in .NET

The Wikipedia article has a pretty good description of what a “Monitor” is, as well as its underlying technology, the Condition Variable. Note that the .NET Monitor is a correct implementation of a condition variable; most published Win32 implementations of CVs are incorrect, even ones found in normally reputable sources such as Dr. Dobbs. This … Read more

Monitor vs lock

Eric Lippert talks about this in his blog: Locks and exceptions do not mix The equivalent code differs between C# 4.0 and earlier versions. In C# 4.0 it is: bool lockWasTaken = false; var temp = obj; try { Monitor.Enter(temp, ref lockWasTaken); { body } } finally { if (lockWasTaken) Monitor.Exit(temp); } It relies on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)