Archive for April, 2009
Getting you stuff centered on the page with CSS.
Monday, April 20, 2009 21:35 No CommentsIt’s not to obvious how to get your stuff horizontally and vertically centered on an html page by using CSS. But it’s not too hard; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Center</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> html,body { height:100%; width:100%; } body { text-align:center; min-height:70px; min-width:100px; } [...]
Getting an Icon from an ImageList
Tuesday, April 14, 2009 8:44 No CommentsIf you have added icons to an imagelist in .NET, you might want to retrieve that icon. Yet, the ImageList.Image[n] will return an Image, not an Icon. If you need the Icon, you can use this code: Icon i = Icon.FromHandle(((Bitmap)imageList.Images[0]).GetHicon()); That’ll work.
Restoring your x64 PC With the Home Server PC Restore CD.
Saturday, April 4, 2009 15:34 No CommentsEvery once in a while one messes up… Yesterday, late in the evening, it was my turn. I messed up my Vista x64 PC. (Like someone at a large software company, I won’t mention the person or the company by name, once said to me; we can prevent a user from looking stupid, but we cannot [...]
