When I have an icon located close to my taskbar, it looks like this:



I'm using Windows 8.1. I started a game that for some reason defaulted to 1024x768. I went ahead and changed the in-game resolution. But when I quit, I noticed an abnormally big gap between the lowermost icon and the taskbar. Apparently, the desktop resolution also changed to 1024x768 so I changed it back to 1920x1080 but the gap is still present.

Also, there's a gap on the edge of the right side of my desktop and I'm unable to place icons to the rightmost of my desktop.

Is there a way to revet this to default? I tried rebooting to no avail.


Question: Directory.GetFiles string gives an error
Answer: A little advice, when using the file system in ASP.NET, leverage Server.MapPath:

string[] ssImgs = Directory.GetFiles(Server.MapPath("~/images/movies"));


where ~/images/movies is the full relative path from the root of the web application.

Secondly, before just grabbing an index of the array, make sure it's actually there. It would be better to change your indexing code to something like this:

Label1.Text = ssImgs.Length &gt;= 1 ? ssImgs[0] : "File 1 not found.";
Label2.Text = ssImgs.Length &gt;= 2 ? ssImgs[1] : "File 2 not found.";


By making these two changes you won't have to worry about getting a DirectoryNotFound exception or an IndexOutOfRange exception.