Posts Categorized: .Net 3.0 / 3.5

Unexpected error encountered opening Visual Studio project

Posted by & filed under .Net, .Net 3.0 / 3.5, Version Control, Visual Studio, Windows Forms.

Today while opening a win-form project, I got an exception message like this from Visual Studio. And then the Visual Studio project was not available in the solution. All the project said was “The project file cannot be loaded.” This error is because the project was under Subversion version control, and I don’t have Subversion [...]

Using SynchronizationContext in Windows Forms

Posted by & filed under .Net, .Net 3.0 / 3.5, CodeProject, Windows Forms.

Long back I wrote a post about how to fix – System.InvalidOperationException – Cross-thread operation not valid exception, while we try to access user interface elements from a different thread, other than the thread(normally main thread), which created the user interface elements. .NET 2.0 brings us SynchoronizationContext which allows us to execute a section of [...]

Using Microsoft Ink Picture control

Posted by & filed under .Net, .Net 3.0 / 3.5, CodeProject, Windows Forms.

The InkPicture control provides the ability to place an image in an application and enable users to add ink on top of it. It is intended for scenarios in which ink is not recognized as text but is instead stored as ink. InkPicture control extends the default picturebox control. This post is about working with [...]

How to upload file to FTP server using C#

Posted by & filed under .Net, .Net 3.0 / 3.5, .Net 4.0, Windows Forms.

From .net framework 2.0 onwards .net supports FTP operations. Like HttpWebRequest and HttpWebResponse, for FTP operations, FtpWebRequest and FtpWebResponse classes are available, under System.Net namespace. Here is the code snippet, which will help you to upload a file to FTP server, using C#. And here is the GetFileData function, which will return byte array from [...]