This posting is a little off topic, but I always forget the command-line command to restart IIS. It is simply: iisreset
Here is more info at:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/003ed2fe-6339-4919-b577-6aa965994a9b.mspx?mfr=true
This blog is a depository for things I have found regarding VB.NET and C#.NET development (and other things I may need to remember). This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
Thursday, August 27, 2009
Tuesday, August 4, 2009
How to tell in VB.NET or C# if the Ctrl or Shift Key are being pressed
Sometimes you may need to know if the Ctrl or Shift key is being pressed by checking its state instead of using a key event. Also, most solutions to this problem involve some pinvoking and the win32api GetKeyState, but it turns out to be very simple as this posting describes:
http://predicatet.blogspot.com/2008/04/how-to-detect-if-shift-or-control-key.html
Here is the gist:
if (Control.ModifierKeys == Keys.Control)
{
}
http://predicatet.blogspot.com/2008/04/how-to-detect-if-shift-or-control-key.html
Here is the gist:
if (Control.ModifierKeys == Keys.Control)
{
}
Labels:
ModifierKeys
Wednesday, July 22, 2009
Getting Started Building HTML Help Files (.CHM) from Visual Studio's XML Documentation
If you want to build HTML Help files (.CHM) from the XML Documentation embedded in your .NET code, here is a good post on how to get started:
http://saftsack.fs.uni-bayreuth.de/~dun3/archives/integrate-xml-code-comments-into-visual-studio-20052008-using-sandcastle-and-html-help-20/150.html
Here is some more information after you get going:
http://www.codeproject.com/KB/XML/csharpcodedocumentation.aspx
Here is even more good info on the XML Documentation Syntax from Alan Dean:
http://thoughtpad.net/alan-dean/cs-xml-documentation.html
http://saftsack.fs.uni-bayreuth.de/~dun3/archives/integrate-xml-code-comments-into-visual-studio-20052008-using-sandcastle-and-html-help-20/150.html
Here is some more information after you get going:
http://www.codeproject.com/KB/XML/csharpcodedocumentation.aspx
Here is even more good info on the XML Documentation Syntax from Alan Dean:
http://thoughtpad.net/alan-dean/cs-xml-documentation.html
Labels:
CHM,
HTML Help,
XML Documentation
Making your .CHM FIles (HTML Help) use a larger Font
This post is a little off topic, but this tip is worth a little more press.
If you can't read a .CHM file (HTML Help file) because the font is just too small, you can make it readable again (Thanks Garth Jones).
http://smsug.ca/blogs/garth_jones/archive/2008/10/20/tip-of-the-day.aspx
Options/Internet Options/Accessibility -> Ignore Fonts Sizes on specified Web pages
If you can't read a .CHM file (HTML Help file) because the font is just too small, you can make it readable again (Thanks Garth Jones).
http://smsug.ca/blogs/garth_jones/archive/2008/10/20/tip-of-the-day.aspx
Options/Internet Options/Accessibility -> Ignore Fonts Sizes on specified Web pages
Monday, July 20, 2009
Good Example of using IDisposable with File Streams
Here is a simple, yet good example of how to implement IDisposable when dealing with File Streams:
http://www.blackwasp.co.uk/IDisposable.aspx
Here is a similar example with some discussion, but the first link is probably better:
http://stackoverflow.com/questions/1136210/am-i-implementing-idisposable-correctly
http://www.blackwasp.co.uk/IDisposable.aspx
Here is a similar example with some discussion, but the first link is probably better:
http://stackoverflow.com/questions/1136210/am-i-implementing-idisposable-correctly
Labels:
IDisposable
Creating Custom Dictionary for Code Analysis in Visual Studio
Here is a good description of how to add your own custom words to the spelling dictionary used by Visual Studio's Code Analysis Naming rules (also known as FXCop):
http://duncanjasmith.blogspot.com/2008/07/creating-custom-dictionary-for-code.html
http://duncanjasmith.blogspot.com/2008/07/creating-custom-dictionary-for-code.html
Labels:
Code Analysis,
FXCop
Friday, July 17, 2009
Getting Started with Virtual Earth/Bing Maps
Here is a great video on how to get going with Virtual Earth (now Bing Maps).
This video gets you through all of the problems that show up that the documentation fails to cover.
http://www.liveside.net/developer/archive/2008/09/29/video-getting-started-with-the-virtual-earth-web-service.aspx
This video gets you through all of the problems that show up that the documentation fails to cover.
http://www.liveside.net/developer/archive/2008/09/29/video-getting-started-with-the-virtual-earth-web-service.aspx
Labels:
Bing Maps,
Virtual Earth
Subscribe to:
Posts (Atom)