<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Confessions of a Keytarist &#187; Visual Studio</title>
	<atom:link href="http://www.blog.ianmellor.co.uk/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.ianmellor.co.uk</link>
	<description>Only an idiot blames his fools... tools.. damn keyboard</description>
	<lastBuildDate>Fri, 09 Jul 2010 14:03:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multi debugging in Visual Studio</title>
		<link>http://www.blog.ianmellor.co.uk/2009/10/16/multi-debugging-in-visual-studio/</link>
		<comments>http://www.blog.ianmellor.co.uk/2009/10/16/multi-debugging-in-visual-studio/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 10:14:39 +0000</pubDate>
		<dc:creator>Sk93</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.blog.ianmellor.co.uk/2009/10/16/multi-debugging-in-visual-studio/</guid>
		<description><![CDATA[Firstly, I couldn’t come up with a “snappy” title for this post, so went with the above. I guess I’m too busy to be even marginally creative!
I have recently been working with a multiple web project solution in Visual Studio. For ages, I’ve been switching between each web project by stopping debugging, setting the other [...]]]></description>
			<content:encoded><![CDATA[<p>Firstly, I couldn’t come up with a “snappy” title for this post, so went with the above. I guess I’m too busy to be even marginally creative!</p>
<p>I have recently been working with a multiple web project solution in Visual Studio. For ages, I’ve been switching between each web project by stopping debugging, setting the other as the start up project, and then starting debugging again. As you can imagine, this makes testing interoperability between the two quite a drag.</p>
<p> <span id="more-95"></span>
<p>One of my colleagues showed me that if you set a specific port for Visual Studio’s development server, you can then start the main project (in the normal fashion), but then also start the second project by right-clicking on it, and selecting “run” from the debug menu.</p>
<p>This was a good step forward for me, as previously I wasn’t sure it was possible to achieve debugging across two projects if there was no direct reference defined. However, being the person I was, I wasn’t quite satisfied with having to start one project, then manually starting the second once it had started. So I had a bit of a dive through the various properties and configuration screens within Visual Studio and discovered a method that allows you to start multiple projects, in a defined order, by simply hitting F5.</p>
<p>To do it, right click on the Solution, and choose properties from the context menu. Once the new window appears, ensure “Common Properties”-&gt;”Startup Project” is selected from the list on the left.   <br />Then, on the right side of the screen, select the “Multiple startup projects” option. Finally, change the “Action” cell in the table for each project you want to start up when you begin debugging.    <br />If you need to specify or change the order in which projects are selected, you can select the table row for that project, and using the up/down arrow on the right of the page, move it up and down in the startup order.</p>
<p><a href="http://www.blog.ianmellor.co.uk/images/MultidebugginginVisualStudio_9E1E/solutionsprops.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="solutions-props" border="0" alt="solutions-props" src="http://www.blog.ianmellor.co.uk/images/MultidebugginginVisualStudio_9E1E/solutionsprops_thumb.png" width="483" height="303" /></a> </p>
<p>Quite a neat trick that could have saved me a good deal of ball ache in the earlier parts of this project!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.ianmellor.co.uk/2009/10/16/multi-debugging-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No Closure</title>
		<link>http://www.blog.ianmellor.co.uk/2009/07/23/no-closure/</link>
		<comments>http://www.blog.ianmellor.co.uk/2009/07/23/no-closure/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 15:39:56 +0000</pubDate>
		<dc:creator>Sk93</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.blog.ianmellor.co.uk/?p=47</guid>
		<description><![CDATA[A colleague came to me today asking if I knew of any way to remove the close button from a windows form, but still show the minimize and maximize buttons.
On the face of it, it sounded like an easy answer. I knew you could disable both the minimize and maximize buttons very easily from within [...]]]></description>
			<content:encoded><![CDATA[<p>A colleague came to me today asking if I knew of any way to remove the close button from a windows form, but still show the minimize and maximize buttons.</p>
<p>On the face of it, it sounded like an easy answer. I knew you could disable both the minimize and maximize buttons very easily from within the Visual Studio GUI – so surely there’s an option for the third button; the close button?   <br />Actually, no. Whilst you can remove all three buttons in one go (changing the setting “ControlBox” to false.) and as previously mentioned, you can disable the maximize and minimize buttons (“MaximizeBox” and “MinimizeBox” settings respectively), there is no setting to directly control the Close button.</p>
<p> <span id="more-47"></span>
<p>A quick Google search produced a few varied approaches, but the one I suggested my colleague to implement is as follows:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">private const int CP_NOCLOSE_BUTTON = 0x200;
protected override CreateParams CreateParams
{
    get
    {
        CreateParams mdiCp = base.CreateParams;
        mdiCp.ClassStyle = mdiCp.ClassStyle | CP_NOCLOSE_BUTTON;
        return mdiCp;
    }
}</pre></td></tr></table></div>

<p>This small bit of code simply needs to be placed within your form class; It overrides a property that is already called when a form is initialised, so doesn’t need to be explicitly called.</p>
<p>Some before and after shots:</p>
<p><a href="http://www.blog.ianmellor.co.uk/images/NoClosure_E2CF/2.jpg"><img title="Before" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="238" alt="Before" src="http://www.blog.ianmellor.co.uk/images/NoClosure_E2CF/2_thumb.jpg" width="238" border="0" /></a> <a href="http://www.blog.ianmellor.co.uk/images/NoClosure_E2CF/1.jpg"><img title="After" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="238" alt="After" src="http://www.blog.ianmellor.co.uk/images/NoClosure_E2CF/1_thumb.jpg" width="238" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.ianmellor.co.uk/2009/07/23/no-closure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP hits the studio</title>
		<link>http://www.blog.ianmellor.co.uk/2009/07/02/php-hits-the-studio/</link>
		<comments>http://www.blog.ianmellor.co.uk/2009/07/02/php-hits-the-studio/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:42:00 +0000</pubDate>
		<dc:creator>Sk93</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.blog.ianmellor.co.uk/2009/07/02/php-hits-the-studio/</guid>
		<description><![CDATA[I stumbled across what appears to be an excellent program / plugin; VS.php    It allows for the development, debugging and testing of php files within Visual Studio 2008!
Although it doesn’t have a visual designer, which might scare some people off, I’m a firm believer that visual web “designers” are a bad thing [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled across what appears to be an excellent program / plugin; <a href="http://www.jcxsoftware.com/vs.php">VS.php</a>    <br />It allows for the development, debugging and testing of php files within Visual Studio 2008!</p>
<p>Although it doesn’t have a visual designer, which might scare some people off, I’m a firm believer that visual web “designers” are a bad thing anyway <img src='http://www.blog.ianmellor.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    <br />What it does have is an in-built version of Apache webserver, which takes away the pain of configuring Apache on your local machine to test your sites.    <br />It also supports IIS 6 &amp; 7 with FastCGI.</p>
<p>One of the newest features is the direct support for developing Silverlight 3 applications alongside your php scripts. This means you can have one project that contains both php and Silverlight 3 source files.</p>
<p>On top of that, it also has full intellisense built in!</p>
<p>The only downside is that this cool application isn’t free, but at only $99 and with a 30-day free trial, it’s not a huge expense and would probably be a great buy for anyone who uses Visual Studio a lot, but also writes scripts in PHP.</p>
<p>Check it out here: <a href="http://www.jcxsoftware.com/vs.php" target="_blank">http://www.jcxsoftware.com/vs.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.ianmellor.co.uk/2009/07/02/php-hits-the-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
