Archive for the 'WinForms' Category

Create custom UI appearance for WinForms Form with Shadow - part 6

Thursday, July 31st, 2008

In my previous post I presented a how to use Win32 API functions and structures in order to create a Layered Form using a custom png image file.
(All posts in this series: Post 1, Post 2, Post 3, Post 4, Post 5, Post 6, Source Code)
Today, I plan to explain how to use LayeredForm class [...]

Create custom UI appearance for WinForms Layered Form - part 5

Wednesday, July 30th, 2008

In my previous posts in the series I described how to create custom CheckBox, RadioButton and Button controls. They are completely customizable during design time in Visual Studio WinForms designer.
(All posts in this series: Post 1, Post 2, Post 3, Post 4, Post 5, Post 6, Source Code)
This post presents a creation of a layered [...]

Funny situation with UpdateLayeredWindow in managed C++

Monday, July 28th, 2008

Few days ago, I was reviewed a old code on managed C++ where UpdateLayeredWindow function is used. I post a problem importing the function using DllImportAttribute in my old post which I cannot understand why happened. Today I started to translate this code into C# in order to use it and to write a blog [...]

How to create a WinForms MDI application? - part 4

Friday, July 25th, 2008

It is my last post of the series. The post before this focused on the custom classes developed to support Presentation Layer of the sample application. A group of classes of input data validation has been presented. Another two classes for managing forms and central managing of exceptions were provided.
(All posts in this series: Post [...]

How to create a WinForms MDI application? - part 3

Wednesday, July 23rd, 2008

This is the third post in the series. The second one post describes Business Logic Layer (BLL) of the application. BLL contains two types of classes entities and managers. Here, an entity class contains the information of a business object retrieved from database but it is not equal or the same to those object generated [...]

DllImportAttribute - anonymous usage not allowed error

Tuesday, July 22nd, 2008

Today, I ran into a strange error
error C3094: ‘System::Runtime::InteropServices::DllImportAttribute’: anonymous usage not allowed
and why this error is strange for me? I had an old dll written in managed C++ which imports a method from user32.dll. Initially, this Dll is written using VS 2005 with .Net Framwork 2.0. An the time of development and using it [...]