Blog Home  Home RSS 2.0 Atom 1.0 CDF  
CLYDE BARRETTO's BLOG - .NET etc. - Visual Studio 2003
Visual Studio/.NET/Smart Client/SharePoint
 
 Saturday, May 19, 2007

Somebody asked me a question how to make a form immovable once it is loaded - I am sure this is not a very common request...I looked at the form properties but did not come across any property at the form level that achieves this...so I wrote some code to do it - it seems to work. Throw this code into your form code...

'Trap Initial Form Load to capture initial form coordinates
Dim originalLocation As System.Drawing.Point

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
   MyBase.OnLoad(e)
   originalLocation = Location
End Sub

'After location changes restore back to original location
Protected Overrides Sub OnLocationChanged(ByVal e As System.EventArgs)
   MyBase.OnLocationChanged(e)
   Location = originalLocation
End Sub

5/19/2007 11:35:53 PM (Eastern Standard Time, UTC-05:00)  #    Comments [16]   .NET 1.1 | .NET 2.0 | Visual Basic \ VB.Net | Visual Studio 2003 | Visual Studio 2005 | Windows Forms  | 
 Tuesday, May 02, 2006

Geoff Snowman and Lamont Harrington are going to host a, what I believe to be an excellent session on Biz Talk integration. So if you are a novice, expert or simply want to know more about Biz Talk and how it integrates with other microsoft products come on over. Find out more at http://caparea.net/Meetings+and+Events/509.aspx

5/2/2006 10:44:31 AM (Eastern Standard Time, UTC-05:00)  #    Comments [18]   BizTalk | Visual Studio 2003 | Visual Studio 2005  | 
 Friday, April 28, 2006
Designing and Debugging a User Control in DESIGNTIME and RUNTIME in Visual Studio 2003
4/28/2006 2:58:55 PM (Eastern Standard Time, UTC-05:00)  #    Comments [14]   Custom Controls | Smart Client | Visual Studio 2003 | Windows Forms  | 
Copyright © 2012 Clyde Barretto. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: