Category Archives: WPF

Custom Places in FileDialog box

If you ever tried to Open a File from Visual Studio, you may notice something like Projects Folder in the Open File Dialog. We can also implement the same functionality in our applications by using CustomPlaces collection property of FileDialog … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Windows 7, Windows Forms, WPF | Tagged , , , , | Leave a comment

System.InvalidOperationException – Cross-thread operation not valid

System.InvalidOperationException – Cross-thread operation not valid: Control ‘xxxxx’ accessed from a thread other than the thread it was created on. Normally we get this exception when we try to modify some control property from another thread. This is because when … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Windows Forms, WPF | Tagged , , | 3 Comments

WPF interoperability with Windows Forms

In October 24th 2009, I got a chance to attend MS Community Techdays at Trivandrum. One of the session was WPF interoperability with Windows Forms. By using this we can use WPF controls in Classic Windows based applications. For this … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Windows Forms, WPF | Tagged , , , | 1 Comment

How to Store and Retrieve files from SQL Server Database

The forum I joined recently got lot of queries like How to Save Images in the Database, How to save files in SQL Server, How read files from Database etc. So I thought of writing a post regarding this. Even … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, SQL Server, Visual Studio, Windows Forms, WPF | Tagged , , , , , , | 2 Comments

Consuming a C++ DLL in C#

While working on my current project, I had to use some low level I/O operations, but it was difficult using C#, and I got some C++ implementations. Then I thought of creating a DLL in C++ and use it in … Continue reading

Posted in .Net, .Net 3.0 / 3.5, Visual Studio, Win 32 API, Windows Forms, WPF | Tagged , , , , | Leave a comment