Showing posts from August, 2011

Simple Nant Build file - revert switch update

Nant you might all know is a powerful tool when creting builds.It offers lot of flexibility when it come to building projects.Nant along with subversion and wix can make your life easier to build your app.Here is a simple post that shows you how to use nant and get files.

Following script does
3.remove unversioned files and directories

<?xml version="1.0" encoding="utf-8"?>
<project name="testscriptfile" default="build" basedir=".">

<property name="subversion.username" value="YourUserName" />
<property name="subversion.password" value="YourPassWord" />

<property name="subversion.projectpath" value="YoutPath" />
<property name="dir.project" value="yourPhysicalFilesPath" />

<property name="subversion.revision" value="-1" />
<property name=&qu…

StatusStrip missing windows c# mdi windows forms application

All of a sudden the status bar in our MDI windows forms application is lost when you resize the form smaller.

Here is the scenrario

MDI Parent -  Has a StatusStrip that contains 3 ToolStripLabels that has spring property set to false.

MDI Child - Has a StatusStrip that contains 1 ToolStripLabel that has spring property set to true.MDI Child form size is 1280 x 1024 (design time).

In the mdi child activate event of the mdi parent , the statusstrip from the mdi child is merged into the statusstrip of the mdi parent using the ToolStripManager.Merge method.

It seems the problem is "toolstriplabel" in mdi child spring is set to true and the width of the toolstriplablel is close to 1280(form width).So when you resize your mdi parent smaller than the design width of the toolstriplabel is trying to steal the 1280 width, as it is not available it went some where, also it is pushing the labels in the mdi area go out of the visible area.

To fix this problem ;
1.make the toolstriplabe…