<p>Is there a way to set a maximum size for files that can be check in into source control under Team Foundation Server 2005 or 2008?</p>

<p>In the past, when we worked with SourceSafe there were several cases were developers decided to checkin a 500mb data file to source control. </p>

<p>I don't know what such a thing will do to TFS - and actually, I don't want to find out.</p>

<p><strong>Edit:</strong> Custom checkin policy is not a viable solution for two reasons:</p>

<ol>
<li><p>it is done in the client side - I want the server to protect itself from such an abuse</p></li>
<li><p>custom checkin policy can be overridden by the user.</p></li>
</ol>

I can only give a partial answer but I think the reason that
```
```
public void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
                libDataGrid.DataSource = this.manager.Lib.LibList;
                libDataGrid.Refresh();
        }
```
```
isn't working, is because you need to add this line where tabControl1 is being initialized.  I've had this problem where VS won't do this itself.
```
```
tabControl1.SelectedIndexChanged += new EventHandler(tabControl1_SelectedIndexChanged);
```
```