<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>VB &amp; .NET Blogs @ vbCity.com</title><link>http://blogs.vbcity.com/MainFeed.aspx</link><description>VB &amp; .NET Blogs @ vbCity.com</description><generator>.Text Version 0.95.2004.102</generator><item><title>ClickOnce deployment videos</title><link>http://blogs.vbcity.com/canoz/archive/2008/05/09/9066.aspx</link><pubDate>Sat, 10 May 2008 03:59:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/05/09/9066.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9066.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9066.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/05/09/9066.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9066.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;I have finished making videos showing how to deploy and update Applications using ClickOnce.&amp;nbsp; All the videos have been zipped so that you can download them and watch at your leisure.&lt;/P&gt;
&lt;P&gt;I orignally thought it was going to be in two parts, but decided in the long run to make it three parts to keep the length ove the video and size of the files down.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.neilknobbe.com/videos/ClickOnce.zip"&gt;Part 1&lt;/A&gt; goes through the settings.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.neilknobbe.com/videos/ClickOnce1.zip"&gt;Part 2&lt;/A&gt; shows the publishing process as well as downloading and installing.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.neilknobbe.com/videos/ClickOnce2.zip"&gt;Part 3&lt;/A&gt; shows how ClickOnce handles updates to the Application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9066.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>WPF Basics: Using Animation to Fade Colors In and Out</title><link>http://blogs.vbcity.com/xtab/archive/2008/05/07/9058.aspx</link><pubDate>Wed, 07 May 2008 20:03:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/xtab/archive/2008/05/07/9058.aspx</guid><wfw:comment>http://blogs.vbcity.com/xtab/comments/9058.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/xtab/comments/commentRss/9058.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/xtab/archive/2008/05/07/9058.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/xtab/services/trackbacks/9058.aspx</trackback:ping><source url="http://blogs.vbcity.com/xtab/rss.aspx">XTab's Blog</source><description>&lt;FONT face=verdana size=2&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;One of the great things about WPF is its ability to let you use animation to enhance your user interface. (Or wreck it if you go too far!) In my opinion, subtle animations can go a long way towards improving the user experience. &lt;/P&gt;
&lt;P&gt;&amp;nbsp; One particular way is to fade colors in and out so that text seems to appear and disappear in a way that gives the impression of movement, but without any jarring visual effects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Doing this in the XAML markup is well documented and you will find many examples around the place. However, I recently had a situation where I wanted to create this animation in the VB code behind. Now, I knew that anything that could be done in XAML can be done in VB, but when it came down to the task it actually caused me more problems than I'd expected. And when I started to search for answers, it took a while. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;It turned out that the reason for my difficulty was a fundamental misunderstanding on my part. I was thinking "color" as being the element to change or animate; in reality it doesn't work quite like that. But after a good deal of trial and error, I eventually hit on the answer. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; In this case I wanted to fade the text on a button from its original black to white. But because I would use this effect in a number of situations, including some where there was no user driven event to fire it, I decided that putting the animation instructions in the code behind was the way to go. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;I'll start with the XAML though, as I think that in most cases this will be your preferred route. I'll cover the VB approach at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;here's the XAML:&lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Courier New'; BACKGROUND-COLOR: #f5f8d6"&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;Button&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Margin&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="30,67,0,111"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Button1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Foreground&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Black"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; HorizontalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Left"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;Animated Button&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;Button&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;Button&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; HorizontalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Right"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Margin&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0,77,96,111"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Button2"&lt;/FONT&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Click&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Button2_Click"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Content&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Animated Button"&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; &amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;Button.Triggers&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;EventTrigger&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; RoutedEvent&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Button.Click"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;BeginStoryboard&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;Storyboard&lt;/FONT&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetProperty&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Foreground.Color"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#800000&gt;ColorAnimation&lt;/FONT&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; To&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="White"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Duration&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0:0:2" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;Storyboard&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;BeginStoryboard&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;EventTrigger&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;Button.Triggers&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#800000&gt;Button&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Most of it is pretty straightforward:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;1. &amp;nbsp;Having first created the button and set its main visual properties, we create a Triggers block for the Button.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;2. &amp;nbsp;Next we identify the trigger to be used to fire this animation. In this case it is the Button's Click event. &lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;&amp;nbsp;The Storyboard is then created and we identify the Target Property which is the Foreground Color of the button. &lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;&amp;nbsp; Finally, the animation details which comprise the starting color, the ending color and the duration in seconds. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;The remainder of that code snippet are closing tags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Now it's the fact that the TargetProperty is identified as the Foreground.Color that threw me off the track when I came to create a VB version of this task. I was trying to find a way of assigning the animation &lt;I&gt;directly&lt;/I&gt; to the Foreground Color of the button (or the Button.Content Color or various other permutations - none of which worked).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;The reason is that you have to set the animation on a &lt;I&gt;Brush&lt;/I&gt;, and not directly to the Foreground property. You then assign this brush as the one to be used for the Foreground. And finally, when you run the animation to change the color of the brush, the animation is then seen to be applied to the Foreground. I hope that makes sense!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Here's the VB code that does this:&lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Times New Roman'; BACKGROUND-COLOR: #f5f8d6"&gt;&lt;FONT color=#008000&gt;' Create color animation sequence.&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;Dim&lt;/FONT&gt; blackToWhite&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; ColorAnimation =&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; ColorAnimation(Colors.White,&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; Duration(&lt;FONT color=#0000ff&gt;New&lt;/FONT&gt; TimeSpan(0, 0, 2)))&lt;BR&gt;&lt;FONT color=#008000&gt;&lt;BR&gt;'Create a new brush and apply the color animation to the brush&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;Dim&lt;/FONT&gt; scb&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; SolidColorBrush =&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; SolidColorBrush(Colors.Black)&lt;BR&gt;&lt;BR&gt;scb.BeginAnimation(SolidColorBrush.ColorProperty, blackToWhite)&lt;BR&gt;&lt;FONT color=#008000&gt;&lt;BR&gt;'Assign the brush to Button's Foreground&lt;/FONT&gt;&lt;BR&gt;Button1.Foreground = scb&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#a31515&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Like all these little glitches and gotchas, you wonder how it seemed so difficult once you've seen the answer. But as we all know, it's really easy to set yourself off on the wrong mindset and find yourself needlessly chasing your tail trying to get the exact syntax for what you're trying to achieve. Hopefully if you need to run this kind of animation in code, you'll now be saved a bit of potential frustration. &lt;/P&gt;&lt;/FONT&gt;&lt;img src ="http://blogs.vbcity.com/xtab/aggbug/9058.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Ged Mead</dc:creator></item><item><title>Free Web Design Templates at oswd.com (Open Source Web Design)</title><link>http://blogs.vbcity.com/mcintyre/archive/2008/05/04/9057.aspx</link><pubDate>Sun, 04 May 2008 14:50:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/mcintyre/archive/2008/05/04/9057.aspx</guid><wfw:comment>http://blogs.vbcity.com/mcintyre/comments/9057.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/mcintyre/comments/commentRss/9057.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/mcintyre/archive/2008/05/04/9057.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/mcintyre/services/trackbacks/9057.aspx</trackback:ping><source url="http://blogs.vbcity.com/mcintyre/rss.aspx">mike mcintyre's</source><description>&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;Open Source Web Design&lt;/STRONG&gt; is a collection of web designs submitted by the community that anyone can download &lt;EM&gt;free of charge&lt;/EM&gt;! &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Check it out at:&amp;nbsp; &lt;A href="http://www.oswd.org/site/information/"&gt;Open Source Web Design&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=1&gt;&lt;FONT face=Verdana&gt;Mike McIntyre&lt;/FONT&gt; &lt;BR&gt;&lt;FONT face=Verdana&gt;&lt;A href="http://www.getdotnetcode.com"&gt;www.getdotnetcode.com&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src ="http://blogs.vbcity.com/mcintyre/aggbug/9057.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Mike McIntyre [MVP Visual Basic]</dc:creator></item><item><title>Deploying applications with ClickOnce</title><link>http://blogs.vbcity.com/canoz/archive/2008/05/03/9056.aspx</link><pubDate>Sun, 04 May 2008 02:49:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/05/03/9056.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9056.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9056.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/05/03/9056.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9056.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;&lt;STRONG&gt;ClickOnce Deployment&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;A recent post on &lt;A href="http://www.vbcity.com/"&gt;vbCity &lt;/A&gt;regarding deploying an application with ClickOnce got me wondering about doing deployment with ClickOnce.&lt;/P&gt;
&lt;P&gt;I have always done deployment of applications by creating and using a Setup and Deployment package which created a .msi installer file, so it was interesting to see some of the differences between the two distribution methods.&lt;/P&gt;
&lt;P&gt;First off I created a simple application to test the ClickOnce distribution and installation method with.&amp;nbsp; What I created was nothing special, just a windows form with at button that, when it&amp;nbsp;is&amp;nbsp;clicked, a message box is shown.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;As you can see the application is nothing special.&amp;nbsp; One other thing that I did was add a version number to the text of the form.&amp;nbsp; I did this to show how ClickOnce deployment installs newer versions as they are available.&amp;nbsp; I will get to this a little later.&lt;/P&gt;
&lt;P&gt;Once your application is ready to go you want to open up the &lt;STRONG&gt;My Project&lt;/STRONG&gt; page from the solution explorer.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/03ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;On the My Project&amp;nbsp; page click the Publish tab.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/04ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;From this page, you define where your application is going to be available from and how it is going to be installed on the client machine. &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/05ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Taking a look at the publish page from the top down the first thing you will want to enter will be the location (URL) that you are going to publish to.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/06ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;As you can see from the image above, you have three options for the location that you are going to publish to.&amp;nbsp; You can publish to a web site (&lt;A href="http://www.somesite.com/"&gt;http://www.somesite.com&lt;/A&gt;) but to do this you must have FrontPage extensions enabled on the web site.&amp;nbsp; You can publish to a ftp server (&lt;A href="ftp://www.somesite.com/"&gt;ftp://www.somesite.com&lt;/A&gt;) as long as you have ftp permissions for the site, or you can publish to a local file (C:\myApplication). (For distribution this last option is not really that realistic unless you are on an internal network where you can share out the directory to others on the network.)&lt;/P&gt;
&lt;P&gt;The next option you have is to determine if you application is available offline or not. &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/07ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;If you don&amp;#8217;t want the users to be able to access your application offline then select the online option.&amp;nbsp; This will cause your application to run, but not show in the start menu of the user&amp;#8217;s computer.&amp;nbsp; They would need to download the application each time they wanted to use your application.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;If you make the application available offline then a shortcut is included in the start menu of the computer making the application accessible all the time.&lt;/P&gt;
&lt;P&gt;To the right of the Install settings there is a group of four buttons.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/08ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;These buttons define what files are to be included with your application, any prerequisites that the end user must have installed on their computer to run your application, how and when to get updates as well as options such as adding the publishers name, product name etc.&lt;/P&gt;
&lt;P&gt;Under the install mode and the buttons there is the version boxes plus the option to automatically increment the revision with each publish.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/09ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Keeping the increment box checked is, I believe, quite important.&amp;nbsp; If you don&amp;#8217;t remember to increment the version number when you republish the application then the next time the application checks for updates it looks at the version number and if that number has not changed, even though your application may have, it assumes that there is nothing newer and opens the currently installed version.&lt;/P&gt;
&lt;P&gt;The last two items on the window are the Publish Wizard and Publish Now buttons.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/10ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;The Publish Wizard button will open a series of dialogues and walk you through the settings that you want your installer to use.&lt;/P&gt;
&lt;P&gt;The Publish Now button will use the information that you have entered on the page and create the installer files then, if you are deploying the files to either a web site or ftp site, prompt you for log on details.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/13ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Simply insert your username and password then click the OK button and the files required will be uploaded to the URL you specified.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/14ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;You can see in the image above that ClickOnce has created two files and one directory on the web server.&amp;nbsp; Within the Application Files directory you would find one directory containing each version that has been published and uploaded.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/17ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;I just happen to have two versions in the application files directory and the one that will get distributed will always be the latest version.&amp;nbsp;(I mentioned earlier that I had put a version number&amp;nbsp;on the text of the&amp;nbsp;form and the version number you should see is 2&amp;nbsp;not 1 like the image&amp;nbsp;of the form above.)&amp;nbsp;It would not matter how many older versions I have on my server.&lt;/P&gt;
&lt;P&gt;Now you may distribute the address of your application to your clients.&amp;nbsp; The file that you want to point to is the Application Manifest file, not the setup file.&amp;nbsp; From the image above I would point people to the URL &lt;A href="http://www.neilknobbe.com/clickonce/ClickOnce.application" target=_blank&gt;http://www.neilknobbe.com/clickonce/ClickOnce.application&lt;/A&gt;.&amp;nbsp; (The link is live and you can navigate to it, download and install the application that I mentioned at the start of this post.&amp;nbsp; It is not very exciting, but it shows how ClickOnce works.)&lt;/P&gt;
&lt;P&gt;The prerequisites for installation, which you would have set earlier, are checked.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/25ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;If all is ok, the user will be prompted to install the application.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/24ClickOnce.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Once installed your ClickOnce deployed application is ready to use.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9056.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Look Mom, no parameters!  Relaxed delegates in Visual Basic 2008 (VB9)</title><link>http://blogs.vbcity.com/mcintyre/archive/2008/05/01/9053.aspx</link><pubDate>Fri, 02 May 2008 01:59:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/mcintyre/archive/2008/05/01/9053.aspx</guid><wfw:comment>http://blogs.vbcity.com/mcintyre/comments/9053.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/mcintyre/comments/commentRss/9053.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/mcintyre/archive/2008/05/01/9053.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/mcintyre/services/trackbacks/9053.aspx</trackback:ping><source url="http://blogs.vbcity.com/mcintyre/rss.aspx">mike mcintyre's</source><description>&lt;P&gt;&lt;FONT face=Verdana&gt;Relaxed delegate conversion, introduced in Visual Basic 2008,&amp;nbsp;enables you to assign subs and functions to delegates or handlers even when the signatures are not identical.&amp;nbsp;Therefore, binding to delegates becomes consistent with the binding already allowed in method invocations.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;In Visual Basic prior to 2008:&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Sub OnClick&lt;STRONG&gt;(ByVal sender As Object, ByVal e As EventArgs)&lt;/STRONG&gt; Handles RunButton.Click&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Visual Basic prior to VB 2008")&lt;BR&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;In Visual Basic 2008 (VB9)&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Sub OnClick&lt;STRONG&gt;()&lt;/STRONG&gt; Handles RunButton.Click&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Look Mom, no parameters!")&lt;BR&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;Details:&amp;nbsp; &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb531336.aspx"&gt;&lt;FONT face=Verdana&gt;Relaxed Delegate Conversion&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Mike McIntyre&lt;BR&gt;&lt;A href="http://www.getdotnetcode.com/"&gt;www.getdotnetcode.com&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;!----&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/mcintyre/aggbug/9053.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Mike McIntyre [MVP Visual Basic]</dc:creator></item><item><title>Visual Web Gui - ASP.NET web applications built with a .NET Windows Forms project!</title><link>http://blogs.vbcity.com/mcintyre/archive/2008/04/29/9052.aspx</link><pubDate>Wed, 30 Apr 2008 02:19:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/mcintyre/archive/2008/04/29/9052.aspx</guid><wfw:comment>http://blogs.vbcity.com/mcintyre/comments/9052.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/mcintyre/comments/commentRss/9052.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/mcintyre/archive/2008/04/29/9052.aspx#comment</comments><slash:comments>2</slash:comments><trackback:ping>http://blogs.vbcity.com/mcintyre/services/trackbacks/9052.aspx</trackback:ping><source url="http://blogs.vbcity.com/mcintyre/rss.aspx">mike mcintyre's</source><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Visual Web Gui is an open source product for&amp;nbsp;porting .NET Windows Forms applications to the web.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;It is used to create ASP.NET web applications with a very AJAX like experience - without the AJAX programming hassle.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;It may be worth it to you to give it a try. Though it's&amp;nbsp;little rough around the edges at this point,&amp;nbsp;this product can be used today to produce web applications from .NET Windows Forms projects. And - the developer is rapidly improving the product each month.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;It's easy to get started and it&amp;nbsp;to produce&amp;nbsp;useful web applications. I've been playing around with it for about a week and have already created two small web applications for IT management.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;The process is straight-forward:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;1. Download and install&amp;nbsp;the free Visual Web Gui Visual Studio project templates.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;2. Create a Visual Web Gui project. This is a Visual Studio Windows Forms project.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;3.&amp;nbsp;Build out the&amp;nbsp;Windows Froms application.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;4. Compile.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;5. Run result in web browser.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;6. Deploy to web server.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Visual Web Gui web site:&amp;nbsp; &lt;/FONT&gt;&lt;A href="http://www.visualwebgui.com/"&gt;&lt;FONT face=Verdana size=2&gt;http://www.visualwebgui.com/&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Visual Web Gui at CodePlex: &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/VWGSilverlight"&gt;&lt;FONT face=Verdana size=2&gt;http://www.codeplex.com/VWGSilverlight&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike McIntyre&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.getdotnetcode.com"&gt;www.getdotnetcode.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/mcintyre/aggbug/9052.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Mike McIntyre [MVP Visual Basic]</dc:creator></item><item><title>Text and Image for Button with Visual Studio 2005</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/24/9051.aspx</link><pubDate>Fri, 25 Apr 2008 02:17:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/24/9051.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9051.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9051.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/24/9051.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9051.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;Ok, let&amp;#8217;s call this page 22,492 in the book of things I did not know about Visual Studio 2005.&lt;/P&gt;
&lt;P&gt;I was reading something the other day, if I can remember or find it I will post up a link, and was surprised that I had missed this little bit before.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;(I have recently been reading &amp;#8220;WPF for those who know Windows Forms&amp;#8221; that can be found &lt;A href="http://blogs.msdn.com/jfoscoding/articles/765135.aspx"&gt;here&lt;/A&gt;&amp;nbsp; and watching webcasts by William Steele&amp;nbsp;on his&amp;nbsp;&lt;A href="http://www.msdnwebcastportal.com/DesktopDefault.aspx?tabindex=3&amp;amp;tabid=25"&gt;WPF Soup To Nuts&lt;U&gt;&lt;FONT color=#800080&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&amp;nbsp;series so it could have could have come from one of those.)&lt;/P&gt;
&lt;P&gt;What was mentioned was having both text and an image on a button.&amp;nbsp; I knew it was possible, but I didn&amp;#8217;t know just how easy it was to do.&lt;/P&gt;
&lt;P&gt;By default when you add an image to the button the text of the button is overlays the image.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;There is a property of a button which helps us set the relation of the text to the image.&amp;nbsp; This name of this property is TextImageRelation.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;The TextImageRelation property has five options:&lt;/P&gt;
&lt;P&gt;
&lt;UL&gt;
&lt;LI&gt;Overlay 
&lt;LI&gt;Image over text 
&lt;LI&gt;Text over image 
&lt;LI&gt;Image before text 
&lt;LI&gt;Text before image&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/03btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;The options are pretty much self explanatory.&amp;nbsp; Below are screen shots showing the different positions.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Image over text:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/04btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Text over image:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/05btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Image before text:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/06btnimage2005.jpg"&gt;&lt;/P&gt;
&lt;P&gt;and lastly&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Text before image:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/07btnimage2005.jpg"&gt;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9051.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Getting Expression Blend to open an Image in Fireworks / Photoshop, etc.</title><link>http://blogs.vbcity.com/drydo/archive/2008/04/23/9050.aspx</link><pubDate>Wed, 23 Apr 2008 12:34:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/drydo/archive/2008/04/23/9050.aspx</guid><wfw:comment>http://blogs.vbcity.com/drydo/comments/9050.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/drydo/comments/commentRss/9050.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/drydo/archive/2008/04/23/9050.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/drydo/services/trackbacks/9050.aspx</trackback:ping><source url="http://blogs.vbcity.com/drydo/rss.aspx">Drydo's Blog</source><description>&lt;p&gt;So firing up Expression Blend and getting into the whole WPF thing is always a refreshing change, especially getting away from mundane coding and alike.  However, the first thing to trip me up and my colleague up was using the "Edit Externally" command from the project view to edit an existing '.png' file and whipping into my favourite graphics editor.  Imagine my surprise when I was greeted with MSPaint!  How there are two things to consider here...&lt;/p&gt;

&lt;p&gt;
&lt;ol&gt;
&lt;li&gt;I used to be a design guy prior to becoming a programmer, so MSPaint is the last thing I need to see.&lt;/li&gt;
&lt;li&gt;Two - MSPaint is in no way anything like a sophisticated design application.  Just get used to it ;-)&lt;/li&gt;
&lt;/ol&gt;
&lt;/p&gt;

&lt;p&gt;Now the doomsayers and conspiracy freaks might consider that MS has done this on purpose, so I fired up Reflector to work out how the project items (such as image files) were actually being catagorised and executed.  What Blend does is by using the old .NET standby of Process.Start but explicitly passing through the 'Edit' string as the 'Verb' when making the call.  In short, they're letting explorer handle the file association.  Note: this works differently from explorer where if you double-click an existing and recognised dot extension it fires up the application with the selected file because its using the 'Open' verb and not the 'Edit' verb.&lt;/p&gt;

&lt;p&gt;Ideally, Blend should use the 'Open' verb rather than hardcoding the 'Edit' verb (well, selection that is then implemented in the EditExternalCommand object) into the 'DocumentType.PreferredExternalEditCommand' property.  Or even better - allow the user to specify those application they want for editing resources.  But hey, its version 1.&lt;/p&gt;

&lt;p&gt;So to get around this, a quick registry tweak will get things working.  Navigate to the key...&lt;/p&gt;

&lt;p&gt;HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command&lt;/p&gt;

&lt;p&gt;...and change the value of the '(Default)' value to your favourite package from...&lt;/p&gt;

&lt;p&gt;"%systemroot%\system32\mspaint.exe" "%1"&lt;/p&gt;

&lt;p&gt;...to &lt;your package name and argument&gt;, so in my case to Fireworks...&lt;/p&gt;

&lt;p&gt;"C:\Program Files\Macromedia\Fireworks 8\Fireworks.exe" "%1"&lt;/p&gt;

&lt;p&gt;...and job done + no need restart...&lt;/p&gt;

&lt;p&gt;HTH - And remember this fix / hack comes without warranty and will effect other instances where applications use this key as well.  In short, be careful and backup your registry before doing this.&lt;/p&gt;&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/9050.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Mark Dryden</dc:creator></item><item><title>Video for WPF expander</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/22/9047.aspx</link><pubDate>Wed, 23 Apr 2008 06:15:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/22/9047.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9047.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9047.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/22/9047.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9047.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;The companion video&amp;nbsp;to &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/14/9035.aspx"&gt;my post&lt;/A&gt; on the expander control in WPF is now available for download.&lt;/P&gt;
&lt;P&gt;The video can be found &lt;A href="http://www.neilknobbe.com/videos/wpfexpander.zip"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9047.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>WPF Expander control revisited</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/18/9045.aspx</link><pubDate>Fri, 18 Apr 2008 09:09:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/18/9045.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9045.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9045.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/18/9045.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9045.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;I was taking another look at the WPF expander control that I talked about &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/14/9035.aspx"&gt;here&lt;/A&gt; and discovered that you don't actually need to use any code to get rid of the background colour of the control when collapsed.&lt;/P&gt;
&lt;P&gt;What I discovered is that if you set the VerticalAlignment of the expander control.&amp;nbsp; You can set this property to Bottom, Center, Stretch and Top.&amp;nbsp; All but Stretch will hide the background colour of the control when the control is collapsed.&lt;/P&gt;
&lt;P&gt;Here is the revised XAML markup for the control:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/09expander.jpg"&gt;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9045.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Video for tab control with WPF</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/17/9042.aspx</link><pubDate>Thu, 17 Apr 2008 21:59:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/17/9042.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9042.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9042.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/17/9042.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9042.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;A couple of days later than I had planned, but I finished the video that is the companion of &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/12/9029.aspx"&gt;this post&lt;/A&gt;&amp;nbsp;about custom content in the tabs of a tab control in WPF.&lt;/P&gt;
&lt;P&gt;You can download the video &lt;A href="http://www.neilknobbe.com/videos/tabcustomcontent.zip"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9042.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Drag and drop code to and from toolbox (part II)</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/14/9036.aspx</link><pubDate>Mon, 14 Apr 2008 09:24:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/14/9036.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9036.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9036.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/14/9036.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9036.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;After &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/13/9033.aspx"&gt;posting up about this feature&amp;nbsp;&lt;/A&gt;&amp;nbsp; of Visual Studio I got to messing around with it a bit. (&lt;A href="http://blogs.msdn.com/saraford/archive/2008/04/10/did-you-know-you-can-drag-and-drop-code-onto-the-toolbox-general-tab-191.aspx"&gt;Sara Ford's post&lt;/A&gt; got me excited about this topic)&lt;/P&gt;
&lt;P&gt;I got to thinking that although it was a great idea to be about to store code snippets in the toolbox, I did get to thinking that it could get confusing having all sorts of code for different things in one tab and be able to separate the code in organized groups would be handy.&amp;nbsp; Well guess what.&amp;nbsp; It can be done.&lt;/P&gt;
&lt;P&gt;If you right click on the General tab of the toolbox you can select to add a tab.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01toolboxtab.jpg"&gt;&lt;/P&gt;
&lt;P&gt;A new tab is created and all you need to do is type in the name that you want your tab to have.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02toolboxtab.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Now you can organize your code, and control, snippets so they are easy to find.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/03toolboxtab.jpg"&gt;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9036.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>WPF Expander Control</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/14/9035.aspx</link><pubDate>Mon, 14 Apr 2008 09:08:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/14/9035.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9035.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9035.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/14/9035.aspx#comment</comments><slash:comments>3</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9035.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;There are a lot of neat options now available to us programmers thanks to WPF.&lt;/P&gt;
&lt;P&gt;One of these is the expander.&amp;nbsp; The expander is a control pretty much like a groupbox which can hold various controls.&amp;nbsp; The main difference between a groupbox and an expander is the controls in a groupbox are always visible where the expander gives the developer, and by extension the user, the ability to hide any controls and conserve valuable space on a windows form.&lt;/P&gt;
&lt;P&gt;As you can see in the image below, the groupbox and expander both contain two radio buttons.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;The advantage of the expander, as I see it,&amp;nbsp;is when I click the little arrow next to the caption of the expander.&amp;nbsp; Once clicked the expander collapses to the height of its header hiding the controls, in this example the radio buttons, from view.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;I will admit that I had to do a little tinkering with the expander to get it looking and working like I wanted it.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I dragged and expander from the toolbox onto my window, sized it and set the background colour, then added a stack panel, and within the stack panel, the two radio buttons. &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/03expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This, unfortunately, was not quite what I wanted because the whole background of the expander was light blue and I only wanted the header to be blue with a small border around the controls.&lt;/P&gt;
&lt;P&gt;To solve this I had to put a border on the expander before putting the stack panel and the radio buttons.&amp;nbsp; Setting the background colour of the border to white and adding a margin and padding for the border completed the look I was attempting.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/04expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Well it had the look as long as the expander was expanded.&amp;nbsp; Once I clicked the button to collapse the expander I was left with a blue square.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/05expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;No radio buttons but not perfect either.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;To get the desired effect of a growing and shrinking panel I used the Expanded and Collapsed methods of the expander to set the height when expanded and collapsed.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/06expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Now I have the effect I was after.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/07expander.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Here is the XAML for the expander with the frame, stack panel and two radio buttons.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/08expander.jpg"&gt;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9035.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Drag and drop code to and from ToolBox</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/13/9033.aspx</link><pubDate>Sun, 13 Apr 2008 09:12:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/13/9033.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9033.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9033.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/13/9033.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9033.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;Sara Ford &lt;A href=http://blogs.msdn.com/saraford/archive/2008/04/10/did-you-know-you-can-drag-and-drop-code-onto-the-toolbox-general-tab-191.aspx target="_blank"&gt;blogged about this &lt;/A&gt;a couple of days ago and I thought it was a really cool feature of Visual Studio.&lt;/P&gt;
&lt;P&gt;She pointed out, what could be, a little known feature of Visual Studio.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;You can highlight and then drag code snippets into the General tab of the toolbox.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01dragdropcode.jpg"&gt;&lt;/P&gt;
&lt;P&gt;You will then fine the code as an item in the toolbox.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02dragdropcode.jpg"&gt;&lt;/P&gt;
&lt;P&gt;If you want to see exactly what the code is all you need to do is hover your mouse over the item and the code will be displayed.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/03dragdropcode.jpg"&gt;&lt;/P&gt;
&lt;P&gt;I think that this is one of the cooler features of Visual Studio and a great and easy way to keep code snippets.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9033.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>TabControl with WPF</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/12/9029.aspx</link><pubDate>Sat, 12 Apr 2008 23:10:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/12/9029.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9029.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9029.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/12/9029.aspx#comment</comments><slash:comments>2</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9029.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;After having looked at how to change the &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/05/9014.aspx"&gt;background colour of the tab header&lt;/A&gt; I got to wondering what else can be done to the tabs using WPF.In a very short time my question changed from &amp;#8220;What can be done?&amp;#8221; to &amp;#8220;What can&amp;#8217;t be done?&amp;#8221;&lt;/P&gt;
&lt;P&gt;As was shown &lt;A href="http://blogs.vbcity.com/xtab/archive/2008/01/14/8945.aspx"&gt;here&lt;/A&gt; by MVP Ged Mead you can easily set the background colour of the tabs on a tab control, and a solution to the setting the background of the header &lt;A href="http://blogs.vbcity.com/canoz/archive/2008/04/05/9014.aspx"&gt;here&lt;/A&gt;. Those posts got me wondering just what else could be done with the tabs on a tab control.&lt;/P&gt;
&lt;P&gt;With very little time and effort I ended up with a tab control that looked like the following.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01wintab.jpg"&gt;&lt;/P&gt;
&lt;P&gt;As you can see the captions on the tabs are quite varied and although you can&amp;#8217;t tell from the image the last tab is very different.&amp;nbsp; The first tab has text with mixed styles, the second tab has a rectangle included with the text and it looks like I have images on the last two tabs, but in fact the last tab has a video playing on it.&amp;nbsp; Yes, I did say video.&amp;nbsp; Complete with sound.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/02wintab.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Believe it or not his whole tab control was created with just 33 lines of XAML markup.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/blogimages/01xamltab.jpg"&gt;&lt;/P&gt;
&lt;P&gt;So leveraging the power of WPF we can easily create much more visually stimulating tab controls than you could with previous versions of Visual Studio.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;I&amp;#8217;ll create a companion video for this and post it up in a couple of days which will also show the video on the fourth tab playing.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9029.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>How to set SharePoint People Picker default value to current user through javascript</title><link>http://blogs.vbcity.com/skullcrusher/archive/2008/04/10/9024.aspx</link><pubDate>Wed, 09 Apr 2008 20:08:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/skullcrusher/archive/2008/04/10/9024.aspx</guid><wfw:comment>http://blogs.vbcity.com/skullcrusher/comments/9024.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/skullcrusher/comments/commentRss/9024.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/skullcrusher/archive/2008/04/10/9024.aspx#comment</comments><slash:comments>1</slash:comments><trackback:ping>http://blogs.vbcity.com/skullcrusher/services/trackbacks/9024.aspx</trackback:ping><source url="http://blogs.vbcity.com/skullcrusher/rss.aspx">Skullcrusher's Blog</source><description>&lt;P&gt;I found this great &lt;A href="http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx"&gt;POST&lt;/A&gt;&amp;nbsp;by the SharePoint Designer team for &amp;#8220;Using Javascript to Manipulate a List Form Field&amp;#8221;.&amp;nbsp; Unfortunately it didn't work very well for People Picker fields which is exactly what I needed to do today.&lt;/P&gt;
&lt;P&gt;After some trial and error, and a bit of head scratching I finally came up with the follow which I thought I'd share, since when I was searching for a solution I found a lot of people in a similar situation with no solution posted.&lt;/P&lt;!-- -- block code of --Start&gt;
&lt;DIV onkeydown="var k =event.keyCode,i=-1,ch=this.firstChild;if(k==32){i=ch.sel;if(++i==ch.selcount)i=0;}else i = k - 49;if(i&gt;=0 &amp;amp;&amp;amp; i&lt;ch.selcount){ch.sel=i;ch.click();}" style="BORDER-RIGHT: #000080 1px solid; BORDER-TOP: #000080 1px solid; MARGIN-LEFT: 10pt; BORDER-LEFT: #000080 1px solid; MARGIN-RIGHT: 2pt; BORDER-BOTTOM: #000080 1px solid"&gt;
&lt;DIV style="FONT: 11px Microsoft Sans Serif; BORDER-BOTTOM: #000080 1px solid" onclick="var i=this.sel,j,ch,count = this.selcount;if(i==this.selold)return;this.selold=i;for(j=0;j&lt;count;j++){ch=this.childNodes[2+j];ch.childNodes[0].checked=j==i;ch.style.fontWeight = j==i ? 'bolder' : 'normal';}ch=parentNode.childNodes[1];var sh=new Array('none','');j=i==0?0:1;ch.style.display=sh[j];ch.nextSibling.style.display=sh[1-j];var h =ch.offsetHeight;ch.style.height=i==1?'125pt':null;if(i==1&amp;amp;&amp;amp; ch.offsetHeight&gt;h)ch.style.height=h;" selcount="3" selold="1" sel="1"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 10pt" onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy&lt;/A&gt;&lt;SPAN style="MARGIN-LEFT: 5pt; CURSOR: hand; MARGIN-RIGHT: 5pt" onclick=parentNode.sel=0&gt;&lt;INPUT onclick=this.blur(); type=radio&gt;Hide&lt;/SPAN&gt;&lt;SPAN style="FONT-WEIGHT: bolder; MARGIN-LEFT: 5pt; CURSOR: hand; MARGIN-RIGHT: 5pt" onclick=parentNode.sel=1&gt;&lt;INPUT onclick=this.blur(); type=radio CHECKED&gt;Scroll&lt;/SPAN&gt;&lt;SPAN style="MARGIN-LEFT: 5pt; CURSOR: hand; MARGIN-RIGHT: 5pt" onclick=parentNode.sel=2&gt;&lt;INPUT onclick=this.blur(); type=radio&gt;Full&lt;/SPAN&gt;&lt;!-- CodeBlock by R.Verpalen 2005 : http://blogs.vbcity.com/hotdog/archive/2005/12/30/5759.aspx--&gt;&lt;/DIV&gt;
&lt;DIV style="OVERFLOW: auto; HEIGHT: 125pt; BACKGROUND-COLOR: #dcdcdc"&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;script&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;type&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="text/javascript"&amp;gt;&lt;/FONT&gt;&lt;BR&gt;_spBodyOnLoadFunctionNames.push(&lt;FONT color=#a31515&gt;"fillDefaultValues"&lt;/FONT&gt;);&lt;BR&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;function&lt;/FONT&gt; fillDefaultValues() &lt;BR&gt;{
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;fillPeoplePickerWithCurrentUser(&lt;FONT color=#a31515&gt;'Submitted_x0020_By'&lt;/FONT&gt;);&lt;/DIV&gt;}&lt;BR&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;function&lt;/FONT&gt; fillPeoplePickerWithCurrentUser(pickerName)&lt;BR&gt;{&lt;FONT color=#008000&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;//get the current user from the welcome menu&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;var&lt;/FONT&gt; currentUser = getCurrentUser();&lt;BR&gt;&lt;FONT color=#008000&gt;&lt;BR&gt;//check to see that we've got it&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;if&lt;/FONT&gt;(currentUser != &lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;)&lt;BR&gt;{&lt;FONT color=#008000&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;//get the people pickers input div&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;var&lt;/FONT&gt; pp = getPickerInputElement(pickerName);&lt;FONT color=#008000&gt;&lt;BR&gt;//set it to the current user if we've found it&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;if&lt;/FONT&gt;(pp != &lt;FONT color=#0000ff&gt;null&lt;/FONT&gt;)
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;pp.innerHTML = currentUser;&lt;/DIV&gt;&lt;/DIV&gt;}&lt;/DIV&gt;}&lt;BR&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;function&lt;/FONT&gt; getCurrentUser()&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;var&lt;/FONT&gt; tags = document.getElementsByTagName(&lt;FONT color=#a31515&gt;'a'&lt;/FONT&gt;);&lt;/DIV&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;for&lt;/FONT&gt; (&lt;FONT color=#0000ff&gt;var&lt;/FONT&gt; i=0; i &amp;lt; tags.length; i++)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;if&lt;/FONT&gt;(tags[i].innerText.substr(0,7) == &lt;FONT color=#a31515&gt;'Welcome'&lt;/FONT&gt;)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;return&lt;/FONT&gt; tags[i].innerText.substr(8,tags[i].innerText.length);&lt;/DIV&gt;}&lt;/DIV&gt;}&lt;/DIV&gt;}&lt;BR&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;function&lt;/FONT&gt; getPickerInputElement(fieldsInternalName)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;var&lt;/FONT&gt; result&amp;nbsp;&amp;nbsp;= &lt;FONT color=#a31515&gt;""&lt;/FONT&gt;;&lt;FONT color=#0000ff&gt;&lt;BR&gt;var&lt;/FONT&gt; divs = document.getElementsByTagName(&lt;FONT color=#a31515&gt;"DIV"&lt;/FONT&gt;);&lt;FONT color=#0000ff&gt;&lt;BR&gt;for&lt;/FONT&gt;(&lt;FONT color=#0000ff&gt;var&lt;/FONT&gt; i=0; i &amp;lt; divs.length ; i++)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;if&lt;/FONT&gt;(divs[i].id==&lt;FONT color=#a31515&gt;"WebPartWPQ2"&lt;/FONT&gt;)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;var&lt;/FONT&gt; tds = divs[i].getElementsByTagName(&lt;FONT color=#a31515&gt;"TD"&lt;/FONT&gt;);&lt;FONT color=#0000ff&gt;&lt;BR&gt;for&lt;/FONT&gt;(&lt;FONT color=#0000ff&gt;var&lt;/FONT&gt; j=0; j &amp;lt; tds.length; j++)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;var&lt;/FONT&gt; cellHTML = tds[j].innerHTML;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 80pt"&gt;if&lt;/FONT&gt;(cellHTML.indexOf(&lt;FONT color=#a31515&gt;'FieldInternalName="'&lt;/FONT&gt; + fieldsInternalName + &lt;FONT color=#a31515&gt;'"'&lt;/FONT&gt;) &amp;gt;= 0)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;var&lt;/FONT&gt; innerDivs = tds[j].getElementsByTagName(&lt;FONT color=#a31515&gt;"DIV"&lt;/FONT&gt;);&lt;FONT color=#0000ff&gt;&lt;BR&gt;for&lt;/FONT&gt;(&lt;FONT color=#0000ff&gt;var&lt;/FONT&gt; k=0; k &amp;lt; innerDivs .length; k++)&lt;BR&gt;{&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;if&lt;/FONT&gt;(innerDivs[k].id.indexOf(&lt;FONT color=#a31515&gt;"UserField_upLevelDiv"&lt;/FONT&gt;) &amp;gt; 0)&lt;BR&gt;{
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;result = innerDivs[k];&lt;FONT color=#0000ff&gt;&lt;BR&gt;break&lt;/FONT&gt;;&lt;/DIV&gt;}&lt;/DIV&gt;}&lt;/DIV&gt;}&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 60pt"&gt;}&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 40pt"&gt;}&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;}&lt;FONT color=#0000ff&gt;&lt;BR&gt;return&lt;/FONT&gt; result;&lt;/DIV&gt;}&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;/&lt;/FONT&gt;&lt;FONT color=#a31515&gt;script&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Times New Roman"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV ondblclick="var o = parentNode.firstChild;o.sel =1;o.click()" style="DISPLAY: none; BACKGROUND-COLOR: #dcdcdc"&gt;&lt;B&gt;. . .&lt;/B&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- 
End of code block----&gt;&lt;img src ="http://blogs.vbcity.com/skullcrusher/aggbug/9024.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Andy Bonner</dc:creator></item><item><title>VB 2005: How To Print With Word Wrapped Lines</title><link>http://blogs.vbcity.com/xtab/archive/2008/04/08/9021.aspx</link><pubDate>Tue, 08 Apr 2008 16:06:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/xtab/archive/2008/04/08/9021.aspx</guid><wfw:comment>http://blogs.vbcity.com/xtab/comments/9021.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/xtab/comments/commentRss/9021.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/xtab/archive/2008/04/08/9021.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/xtab/services/trackbacks/9021.aspx</trackback:ping><source url="http://blogs.vbcity.com/xtab/rss.aspx">XTab's Blog</source><description>&lt;FONT face=verdana size=2&gt;
&lt;P&gt;&lt;U&gt;Introduction&lt;/U&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;Printing can often be a bit of a tricky task in .NET. Some things are more easily resolved than others though.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;I saw a post recently that raised a problem that seems to occur fairly regularly: You want to print a large chunk of text to the printer, but VB seems to want to print everything all on one long line - even when this means that a lot of the text will be truncated or "printed" invisibly into thin air! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Fortunately, this is one of the cases where the solution is relatively easy. Essentially, what you do is set a rectangle whose width represents the width of your printed page (or any lesser width you prefer). You then pass this rectangle to the DrawString method and it will obediently print within those boundaries.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Solution&lt;/U&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; Here's the basic solution: &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Courier New'; BACKGROUND-COLOR: #f2f2f2"&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;Imports&lt;/FONT&gt; System.Drawing.Printing&lt;BR&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;Public&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Class&lt;/FONT&gt; frmPrint&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' The document you will use to print on&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt; DocPrint&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; PrintDocument&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Set font for printing&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt; fnt&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; Font =&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; Font(&lt;FONT color=#a31515&gt;"Verdana"&lt;/FONT&gt;, 12, FontStyle.Regular)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;'&amp;nbsp;&amp;nbsp;The printing is fired with a button click event&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt; Button1_Click(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt; sender&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; System.Object,&lt;FONT color=#0000ff&gt; ByVal&lt;/FONT&gt; e&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; System.EventArgs)&lt;FONT color=#0000ff&gt; Handles&lt;/FONT&gt; Button1.Click&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;&amp;nbsp;Print the textbox content&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DocPrint =&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; PrintDocument&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' A handler for it&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AddHandler&lt;/FONT&gt; DocPrint.PrintPage,&lt;FONT color=#0000ff&gt; AddressOf&lt;/FONT&gt; PrintTheTextBox1&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Print the document&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DocPrint.Print()&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;'&amp;nbsp;&amp;nbsp;The procedure that does the printing&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;Private&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt; PrintTheTextBox1(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt; sender&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Object&lt;/FONT&gt;,&lt;FONT color=#0000ff&gt; ByVal&lt;/FONT&gt; e&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; PrintPageEventArgs)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Set a rectangle to bound the&amp;nbsp;&amp;nbsp;printing&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt; PrintRect&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; RectangleF&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Width = 800&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Height = 1000&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Print the text from the TextBox:&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.Graphics.DrawString(TextBox1.Text, fnt, Brushes.Black, PrintRect)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;/U&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Yes, But.....&lt;/U&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;That's OK as far as it goes, but it does suffer from one flaw. When you check your printed page you'll find that the text is stuffed right up at the top left of the paper and each line extends fully across to the very last few millimetres at the right hand side. Now, it may be that paper saving is high on your agenda, in which case you'll be happy. But generally you will probably want a layout that's a bit more generous with its whitespace.&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; The trouble is that there isn't an overload that allows you to pass in the Rectangle &lt;I&gt;&lt;B&gt;and&lt;/B&gt;&lt;/I&gt; the start position for the printing. Is that going to stump us? Nah, of course not! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;If we go back to the Rectangle itself, there is a constructor overload that allows you to pass in the x and y values as well as the width and height. The x and y values will of course be used as the left and top points respectively of the rectangle as it is positioned on the printed page. So this variation will get the start position, the text line width and text block height all sorted:&lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Courier New'; BACKGROUND-COLOR: #f2f2f2"&gt;&lt;FONT color=#0000ff&gt;Private&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt; PrintTheTextBox2(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt; sender&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Object&lt;/FONT&gt;,&lt;FONT color=#0000ff&gt; ByVal&lt;/FONT&gt; e&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; PrintPageEventArgs)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Set a rectangle to bound the&amp;nbsp;&amp;nbsp;printing&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt; PrintRect&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; RectangleF(30, 100, 750, 1000)&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'&amp;nbsp;&amp;nbsp;Assign its Left, Top, Width and Height values&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Print the text from the TextBox:&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.Graphics.DrawString(TextBox1.Text, fnt, Brushes.Black, PrintRect)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;While I was working on that, I remembered that the Rectangle has a useful little method named Offset (something you would normally use when drawing actual rectangles in a graphics based task). However, by using this method and adjusting the values that are passed so that the top left of the rectangle is shunted down and to the right, we can get nearer to the layout we desire. If you chose to use this alternative route, it would look like this: &lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Courier New'; BACKGROUND-COLOR: #f2f2f2"&gt;&lt;FONT color=#0000ff&gt;Dim&lt;/FONT&gt; PrintRect&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; RectangleF&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Width = 800&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Height = 1000&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Offset(25, 60)&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Show Me The Width&lt;/U&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;It probably won't have escaped your notice that I very conveniently just happened to know what width and height I needed for the text to span across the page. Many times you will have this information to hand, but if you don't, what do you do then? Answer: You calculate it by querying the PrintDocument's PageSettings, find the width, height and margins and use those. Here's the code: &lt;/P&gt;
&lt;P&gt;
&lt;DIV style="MARGIN-LEFT: 10pt; MARGIN-RIGHT: 2pt"&gt;
&lt;DIV style="FONT-SIZE: 10pt"&gt;&lt;B&gt;Code &lt;/B&gt;&lt;A onclick="window.clipboardData.setData('Text',this.parentNode.parentNode.childNodes[1].innerText);alert('Code copied to clipboard');" href="javascript:"&gt;Copy &lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="FONT-SIZE: 15px; OVERFLOW: auto; FONT-FAMILY: 'Courier New'; BACKGROUND-COLOR: #f2f2f2"&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Private&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt; PrintTheTextBox3(&lt;FONT color=#0000ff&gt;ByVal&lt;/FONT&gt; sender&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Object&lt;/FONT&gt;,&lt;FONT color=#0000ff&gt; ByVal&lt;/FONT&gt; e&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt; PrintPageEventArgs)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Set a rectangle to bound the&amp;nbsp;&amp;nbsp;printing&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/FONT&gt; PrintRect&lt;FONT color=#0000ff&gt; As&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; New&lt;/FONT&gt; RectangleF&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;With&lt;/FONT&gt; DocPrint.DefaultPageSettings&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Width = .PaperSize.Width - (.Margins.Left + .Margins.Right)&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Height = .PaperSize.Height&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintRect.Offset(.Margins.Left, .Margins.Top)&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; With&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Print the text from the TextBox:&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.Graphics.DrawString(TextBox1.Text, fnt, Brushes.Black, PrintRect)&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Summary&lt;/U&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Although there are many more tweaks we could add to this approach, I think that the above will cover many common situations. If text trimming at the end of lines is something you need to refine to the nth degree then you should check out the StringFormat class in general and the StringTrimming enumeration in particular. There are several options available there. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Don't forget of course that you may not need to hand code your printing processes at all. There is a free Power Pack available which will print the contents of a form with minimum effort on your part. This will often be all that you need, but if not then at least you now know how to package up a bundle of text and send it to the printer to be laid out in a way that suits your requirements. &lt;/P&gt;&lt;/FONT&gt;&lt;img src ="http://blogs.vbcity.com/xtab/aggbug/9021.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Ged Mead</dc:creator></item><item><title>TabControl background colour video</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/06/9019.aspx</link><pubDate>Mon, 07 Apr 2008 03:04:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/06/9019.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9019.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9019.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/06/9019.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9019.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;This is a follow up on the post about changing the colour of the TabPanel part of the tab control.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I created a video showing how I went about changing the template of the tab control using Expression Blend.&lt;/P&gt;
&lt;P&gt;You can download the video to watch from &lt;A href="http://www.neilknobbe.com/videos/tabcontrolbgcolor.zip"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9019.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Pro WPF with VB 2008 by Matthew MacDonald</title><link>http://blogs.vbcity.com/xtab/archive/2008/04/06/9016.aspx</link><pubDate>Sun, 06 Apr 2008 10:02:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/xtab/archive/2008/04/06/9016.aspx</guid><wfw:comment>http://blogs.vbcity.com/xtab/comments/9016.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/xtab/comments/commentRss/9016.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/xtab/archive/2008/04/06/9016.aspx#comment</comments><slash:comments>2</slash:comments><trackback:ping>http://blogs.vbcity.com/xtab/services/trackbacks/9016.aspx</trackback:ping><source url="http://blogs.vbcity.com/xtab/rss.aspx">XTab's Blog</source><description>&lt;FONT face=verdana size=2&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Friday was something of a Red Letter Day in the Mead household, because that was the day that the book I've been looking forward to getting for months finally arrived on my doorstep. At last - a WPF book aimed at those of us who prefer to use Visual Basic for the code behind. The book is Matthew MacDonald's "Pro WPF with VB 2008", published by Apress. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;In the couple of days since it arrived I obviously haven't been able to get too deeply into reading it - although my wife might offer a different opinion on how many hours I've spent with my head in this book since Friday! However, it's immediately clear that this is another well-written and comprehensive piece of work from a widely respected author.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Unsurprisingly, large chunks of content have been ported directly from his earlier WPF book, which was based on .NET 3.0 and has C# as the code behind. This makes complete sense as it is only the code behind aspects that need the different approach. We VB-ers are just as able to understand the general WPF and XAML explanations as our allegedly "sharper" developer brethren. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;Because this is based on WPF 3.5 though, there are some additional items, such as binding to a LINQ expression in Chapter 16. There is also a completely new additional Chapter 26, which deals with the topics of Multithreading and Add-Ins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;I don't think Apress have the full chapter listing on their site yet (or at least I couldn't see it if they did). However, rest assured that the whole gamut of WPF topics is covered in this book, from Layout to Dependency Properties, Routed Events to Navigation - in fact everything from Animation to Z-Index. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;The author has a very useful list of links that you can simply click on to save you (mis)typing them yourself from the book. These links and the downloadable code samples&amp;nbsp;are available &lt;A href="http://www.prosetech.com/"&gt;from here&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;In my opinion, you should buy this book for two reasons. &lt;BR&gt;&lt;BR&gt;&amp;nbsp;First, it is an excellent, wide ranging, clear description of what you will need to know in order to get fully to grips with this exciting (but not always intuitive) technology. &lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;Second, there have been at least five WPF books published in the past year that have C# as the code behind. Publishers are in the business of selling books and they couldn't care less about whether C# or VB are "better". So I guess it's obvious that their stats show that they will sell more C# books. If you want to keep VB as a viable language, fully supported by authors and publishers, then the only way to ensure this is to make it worth their while to publish VB based books. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;So for either or both these reasons, I rate this book as one of the most worthwhile investments you can make if you are a VB developer (or student) and you want to fully embrace all the tempting offerings available in Windows Presentation Foundation.&lt;/P&gt;&lt;/FONT&gt;&lt;img src ="http://blogs.vbcity.com/xtab/aggbug/9016.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Ged Mead</dc:creator></item><item><title>Setting the TabPanel background colour</title><link>http://blogs.vbcity.com/canoz/archive/2008/04/05/9014.aspx</link><pubDate>Sun, 06 Apr 2008 01:48:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/canoz/archive/2008/04/05/9014.aspx</guid><wfw:comment>http://blogs.vbcity.com/canoz/comments/9014.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/canoz/comments/commentRss/9014.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/canoz/archive/2008/04/05/9014.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/canoz/services/trackbacks/9014.aspx</trackback:ping><source url="http://blogs.vbcity.com/canoz/rss.aspx">CanOz Blog</source><description>&lt;P&gt;A question came up in the &lt;A href="http://www.vbcity.com/"&gt;vbCity Forums&lt;/A&gt; that I participate in about changing the background colour of the header portion of the TabControl.&amp;nbsp; The original question was about changing the colour of the tabs themselves (&lt;A href="http://www.vbcity.com/forums/topic.asp?tid=153871"&gt;original question&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;vbCity Leader (and Microsoft MVP) &lt;A href="http://blogs.vbcity.com/xtab/"&gt;Ged Mead&lt;/A&gt;&amp;nbsp;posted up &lt;A href="http://www.vbcity.com/forums/goto.asp?show=reply&amp;amp;rid=504942"&gt;code to change the colour&lt;/A&gt; of the&amp;nbsp;tabs, but once the tab control's DrawMode property was set to &amp;#8220;OwnerDrawFixed&amp;#8221; the portion of the tab control without button changed to the default colour of &amp;#8220;Button&amp;#8221; which made it no longer the same as the background colour of the form.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/images/tabcolor3.jpg"&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recalled that Ged had posted up &lt;A href="http://blogs.vbcity.com/xtab/archive/2008/01/14/8945.aspx"&gt;a WPF solution for the background colour of a tab&lt;/A&gt; previously and figured that with WPF it may well be possible to change the colour for the rest of the tab header also.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So I forged ahead with my attempt to find a solution.&amp;nbsp; Not being in any way shape or form a pro with WPF, I decided to try modifying the tab control with &lt;A href="http://www.microsoft.com/expression/products/overview.aspx?key=blend"&gt;Expression Blend&lt;/A&gt; instead of Visual Studio.&amp;nbsp; After a little messing around I did find that you can set the background colour of a tab control header to whatever colour you want and still have the tabs themselves with different colours.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I started out by taking the XAML that Ged &lt;A href="http://blogs.vbcity.com/xtab/archive/2008/01/14/8945.aspx"&gt;posted &lt;/A&gt;and pasted that into my Expression Blend project as a starting point so it looked like the following.&amp;nbsp; ( I did have to remove the image from the 3rd tab as I didn't have that particular image on my&amp;nbsp;computer.)&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/images/gedtabcolor.jpg"&gt;&lt;/P&gt;
&lt;P&gt;Then I went in and began to look at editing the template of the tab control itself.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;With very little fuss, I was able to set the background property of the TabPanel (this is the part of the tab control which holds the tab buttons) and I ended up with a coloured header background.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/images/tabcolor1.jpg"&gt;&lt;/P&gt;
&lt;P&gt;To accomplish this change you can either edit the XAML of the tab control, if you know what you are doing with XAML, and add in markup for the tab panel of the tab control and include a color for the background attribute.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.neilknobbe.com/images/tabcolor2.jpg"&gt;&lt;/P&gt;
&lt;P&gt;or you can, as I did, right click on the tab conrol and from the popup menu &amp;#8220;edit control parts (template)&amp;#8221;.&amp;nbsp; Moving your mouse over &amp;#8220;edit control parts (template)&amp;#8221; causes a submenu to become visible and you then select &amp;#8220;edit a copy&amp;#8221;.&amp;nbsp; The Create Style Resource window opens and you are faced with a few choices.&amp;nbsp; I decided to keep the default choices (resource name and define in this document) just for ease.&amp;nbsp; Click the &amp;#8220;OK&amp;#8221; button and you are ready to start making changes to the template.&lt;/P&gt;
&lt;P&gt;Since all I wanted to do was change the background of the tab panel, I selected it by clicking on the part of the tab panel that didn't have any buttons and in the properties pane I set the background to the colour that I wanted.&amp;nbsp; That is how easy it was to get the effect that was required.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Once I had made all the changes required, I simply&amp;nbsp;copied the XAML of the tab control from Expression and pasted it into&amp;nbsp;a Visual Studio project and was ready to continue.&lt;/P&gt;
&lt;P&gt;Below is the complete&amp;nbsp;XAML for the&amp;nbsp;tab&amp;nbsp;control as shown above.&lt;/P&gt;
&lt;P&gt;&lt;!-- CodeBlock by R.Verpalen 2005 : http://blogs.vbcity.com/hotdog/archive/2005/12/30/5759.aspx--&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV style="OVERFLOW: auto; BACKGROUND-COLOR: #dcdcdc"&gt;&lt;FONT color=#0000ff&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Window&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;xmlns&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;&lt;BR&gt;xmlns&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="http://schemas.microsoft.com/winfx/2006/xaml"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;&lt;BR&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Class&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Window1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;&lt;BR&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Window"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;&lt;BR&gt;Title&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Window1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;&lt;BR&gt;Width&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="640"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Height&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="480"&amp;gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Window.Resources&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;SolidColorBrush&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Key&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabControlNormalBorderBrush"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Color&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="#8C8E94"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Style&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Key&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabControlStyle1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetType&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Type&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TabControl&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Foreground"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;DynamicResource&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; {&lt;/FONT&gt;&lt;FONT color=#a31515&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Static&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; SystemColors&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;.&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;ControlTextBrushKey&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}}"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Padding"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="4,4,4,4"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="BorderThickness"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="BorderBrush"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;StaticResource&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TabControlNormalBorderBrush&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Background"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="#F9F9F9"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HorizontalContentAlignment"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Center"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="VerticalContentAlignment"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Center"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Template"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter.Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ControlTemplate&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetType&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Type&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TabControl&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; ClipToBounds&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="true"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; SnapsToDevicePixels&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="true"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; KeyboardNavigation.TabNavigation&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Local"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Grid.ColumnDefinitions&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ColumnDefinition&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ColumnDefinition&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Width&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Grid.ColumnDefinitions&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Grid.RowDefinitions&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;RowDefinition&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Height&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Auto"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;RowDefinition&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Height&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Grid.RowDefinitions&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabPanel&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Margin&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="2,2,0,0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Grid.Column&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Grid.Row&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="#FF0968BA"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; IsItemsHost&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="true"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Panel.ZIndex&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; KeyboardNavigation.TabIndex&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Border&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Grid.Column&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Grid.Row&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TemplateBinding&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; BorderBrush&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TemplateBinding&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; BorderBrush&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; BorderThickness&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TemplateBinding&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; BorderThickness&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; KeyboardNavigation.DirectionalNavigation&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Contained"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; KeyboardNavigation.TabIndex&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="2"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; KeyboardNavigation.TabNavigation&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Local"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ContentPresenter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; SnapsToDevicePixels&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TemplateBinding&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; SnapsToDevicePixels&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Margin&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TemplateBinding&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Padding&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="PART_SelectedContentHost"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; ContentSource&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="SelectedContent"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Border&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ControlTemplate.Triggers&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabStripPlacement"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Bottom"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Auto"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Margin"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="2,0,2,2"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabStripPlacement"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Left"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Column"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Column"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Width"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Auto"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Width"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Margin"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="2,2,0,2"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabStripPlacement"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Right"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Row"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Column"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="1"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Grid.Column"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ContentPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Width"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Width"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="ColumnDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Auto"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition0"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="*"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Height"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="RowDefinition1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Margin"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TargetName&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="HeaderPanel"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="0,2,2,2"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="IsEnabled"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="false"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Property&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Foreground"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;DynamicResource&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; {&lt;/FONT&gt;&lt;FONT color=#a31515&gt;x&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;:&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Static&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; SystemColors&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;.&lt;/FONT&gt;&lt;FONT color=#ff0000&gt;GrayTextBrushKey&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}}"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Trigger&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ControlTemplate.Triggers&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ControlTemplate&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Setter.Value&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Setter&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Style&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Window.Resources&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabControl&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Margin&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="8"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Name&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="TabControl1"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Style&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="{&lt;/FONT&gt;&lt;FONT color=#a31515&gt;DynamicResource&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; TabControlStyle1&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;}"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;Header&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Members"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="LightGreen"&lt;/FONT&gt;&lt;/DIV&gt;&amp;nbsp;&amp;nbsp;&lt;FONT color=#ff0000&gt; Foreground&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Navy"&amp;gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 60pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBox&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Width&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="150"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="LightGreen"&lt;/FONT&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;FONT color=#ff0000&gt; HorizontalAlignment&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Left"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;J Smith&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;J Jones&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;C B Travis&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;L Fourleather&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBox&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 40pt"&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 40pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Green"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Header&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Associates"&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;nbsp;&amp;nbsp;&lt;FONT color=#ff0000&gt; Foreground&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Navy" &amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 40pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Background&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="LightBlue"&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TabItem.Header&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;StackPanel&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Orientation&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Horizontal" &amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Image&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Width&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="20" /&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;TextBlock&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Text&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="&amp;nbsp;&amp;nbsp;&amp;nbsp;Sponsors"&lt;/FONT&gt;&lt;FONT color=#ff0000&gt; Foreground&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="Red"/&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;StackPanel&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;TabItem.Header&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 60pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBox&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt; 
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;J Smith&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;J Jones&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;C B Travis&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;BR&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;L Fourleather&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBoxItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;ListBox&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Grid&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&lt;/DIV&gt;
&lt;DIV style="MARGIN-LEFT: 40pt"&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;TabItem&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;FONT color=#a31515&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;
&lt;DIV style="MARGIN-LEFT: 20pt"&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;TabControl&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/DIV&gt;&lt;/&lt; FONT&gt;&lt;FONT color=#a31515&gt;Window&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;gt;&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Lucida Casual"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: Comic Sans MS"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;!-- 
End of code block----&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src ="http://blogs.vbcity.com/canoz/aggbug/9014.aspx" width = "1" height = "1" /&gt;</description><dc:creator>V. Neil Knobbe</dc:creator></item><item><title>Developer Day Scotland - 10th May 2008</title><link>http://blogs.vbcity.com/xtab/archive/2008/04/03/9011.aspx</link><pubDate>Thu, 03 Apr 2008 07:14:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/xtab/archive/2008/04/03/9011.aspx</guid><wfw:comment>http://blogs.vbcity.com/xtab/comments/9011.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/xtab/comments/commentRss/9011.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/xtab/archive/2008/04/03/9011.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/xtab/services/trackbacks/9011.aspx</trackback:ping><source url="http://blogs.vbcity.com/xtab/rss.aspx">XTab's Blog</source><description>&lt;P align=center&gt;&lt;A href="http://developerdayscotland.com/main/Default.aspx"&gt;&lt;IMG height=192 alt="Developer Day Scotland" src="http://developerdayscotland.com/images/badges/GetReady1-medium.png" width=144 border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P align=center&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=4&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=4&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face=Verdana&gt;The day of&amp;nbsp;the first ever Developer Day Scotland is getting close!&amp;nbsp;&amp;nbsp; Registration is still open and I hear that there are still a few places left.&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;&amp;nbsp; So if you are anywhere in reach of Glasgow on Saturday 10th May 2008&amp;nbsp;and want to take advantage of this&lt;STRONG&gt; FREE&lt;/STRONG&gt; event for developers, you can Register from &lt;/FONT&gt;&lt;A href="http://developerdayscotland.com/main/Default.aspx"&gt;&lt;FONT face=Verdana&gt;this page.&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&amp;nbsp; Wondering what's in it that might interest you?&amp;nbsp;&amp;nbsp; Check out the &lt;/FONT&gt;&lt;A href="http://developerdayscotland.com/main/Agenda/tabid/68/Default.aspx"&gt;&lt;FONT face=Verdana&gt;agenda here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&amp;nbsp; Colin and the guys have put in a huge amount of effort to get this off the ground, so I'm sure it will be a great day and well worthwhile attending.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; By the way, on a personal note, I'm hoping to use the event to assess if there is enough interest around to start a SouthWest Scotland (or even a SW Scotland and Cumbria) Section of Scottish Developers.&amp;nbsp;&amp;nbsp; So if you live in this general catchment area and think you could be interested in joining&amp;nbsp;such a group, please talk to me on the day.&amp;nbsp; And if you can't make the day and are still interested, contact me via this blog or email to xtab at vb(nospace)city dot com.&lt;/FONT&gt;&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/xtab/aggbug/9011.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Ged Mead</dc:creator></item><item><title>SharePoint Color Picker field</title><link>http://blogs.vbcity.com/skullcrusher/archive/2008/03/29/9009.aspx</link><pubDate>Sat, 29 Mar 2008 02:21:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/skullcrusher/archive/2008/03/29/9009.aspx</guid><wfw:comment>http://blogs.vbcity.com/skullcrusher/comments/9009.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/skullcrusher/comments/commentRss/9009.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/skullcrusher/archive/2008/03/29/9009.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/skullcrusher/services/trackbacks/9009.aspx</trackback:ping><source url="http://blogs.vbcity.com/skullcrusher/rss.aspx">Skullcrusher's Blog</source><description>&lt;P&gt;Well it's been a long time since I last posted so thought I'd share with you how easy it is to make a custom field type within SharePoint.&lt;/P&gt;
&lt;P&gt;Check out this &lt;A href="http://blogs.vbcity.com/skullcrusher/articles/9008.aspx"&gt;New Article&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And see for yourself.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/skullcrusher/aggbug/9009.aspx" width = "1" height = "1" /&gt;</description><dc:creator>Andy Bonner</dc:creator></item><item><title>System.Net.Mail.SmtpClient not sending until the application exits</title><link>http://blogs.vbcity.com/drydo/archive/2008/03/26/9006.aspx</link><pubDate>Wed, 26 Mar 2008 15:07:00 GMT</pubDate><guid isPermaLink="true">http://blogs.vbcity.com/drydo/archive/2008/03/26/9006.aspx</guid><wfw:comment>http://blogs.vbcity.com/drydo/comments/9006.aspx</wfw:comment><wfw:commentRss>http://blogs.vbcity.com/drydo/comments/commentRss/9006.aspx</wfw:commentRss><comments>http://blogs.vbcity.com/drydo/archive/2008/03/26/9006.aspx#comment</comments><slash:comments>0</slash:comments><trackback:ping>http://blogs.vbcity.com/drydo/services/trackbacks/9006.aspx</trackback:ping><source url="http://blogs.vbcity.com/drydo/rss.aspx">Drydo's Blog</source><description>&lt;p&gt;A very quick one.  Been playing with the above class for generating emails in .NET 2.0, embedding images within HTML views which is rather cool.  However, I noticed an unusual problem.  The emails I generated in my test project would not send until I had exited the application.  It was almost like it would only 'flush' the generated email once the application had unloaded.  Interestingly, if I attempted to send the email using the 'SendAsync' method, it would fire the SendCompleted event but still nothing would come through until the application had ended.&lt;/p&gt;

&lt;p&gt;The resolution?  Turning off Symantec Anti-Virus's 'Internet Email Auto-Protect' facility from the 'Configure' menu.  Once deselected, everything started behaving properly.  &lt;/p&gt;

&lt;p&gt;I cannot answer for any other AntiVirus packages - but its a good starting point if you're experiencing the above.&lt;/p&gt;

&lt;p&gt;M&lt;/p&gt;&lt;img src ="http://blogs.vbcity.com/d