Visual Studio 2010 versus COM-Object fails
I spent ages trying to find a solution to this issue after upgrading to VS2012. This link solved the problem and stopped me returning to VS2005. Why Microsoft, why? Thank…
I spent ages trying to find a solution to this issue after upgrading to VS2012. This link solved the problem and stopped me returning to VS2005. Why Microsoft, why? Thank…
The following is taken directly from msdn :How to: Launch the Debugger Automatically Sometimes, you may need to debug the startup code for an application that is launched by another…
From a child form I wanted to close the parent form after a button was clicked, the following is the code I used:// In the child form, create an event…
This is a great solution for dealing with checking whether the clients browser has JavaScript enabled/disabled, and then coping with either scenario:Rich ajax applications that do not break if javascript…
When I was populating an System.Drawing.Image object from a folder of images I revceived the following error message:"System.OutOfMemoryException: Out of memory"At first I thought I had a very large image…
Firefox follows the DOM standard and passes an event object to each event listener, however has the global event: windows.event.Problem:I wanted to fire a piece of javascript after the user…
Maximum character validation on asp.net TextBox controls do not work, therefore a RegularExpressionValidator has to be used to make sure the maximum number of characters are not exceeded e.g.<asp:TextBox ID="tbAbstract"…
Whilst writing some code to search forum posts I had the reason to remove all HTML tags from the forum posts before I could do a valid phrase search. I…
Trim string in JavaScriptvar trimre='^s+|s+$'; // replace whitespacevar trimmedstring = string.replace(trimre,"");Check for a valid date format in JavaScriptvar re='^(d{1,2})/(d{1,2})/(d{4})$'; // dd/mm/yyyyif (!datestring.match(re)){ alert("Date" + datestring + " not in valid…
I have a website with a user forum and content management system, where certain users (or anyone in the case of forums) can post to. I therefore had to create…