How to build .NET Controls using C#
In this article I discribe how to inherit form Control class, provide the drawing function to update tje visual interface of the control even throught the VS.NET designer....
Also I demonstate how to do a Platform/Invoke, call a non .NET dll from the system dlls, (professionally called unmanaged code), this is the dll responsibe for drawing the images on the cards, King, Queen, 1, 2, Ace,... This dll is shared between all card games in Windows: solitaire, Freecell,... and my code too :)
The sample was a control that represents a "Playing Card", with properties of number and shape, suffles decks for playing...
worth to see it, it is publishe don C# Corner
Using Cards.dll in a Windows Control Library
http://www.c-sharpcorner.com/Code/2003/Jan/Cards.asp
Also I demonstate how to do a Platform/Invoke, call a non .NET dll from the system dlls, (professionally called unmanaged code), this is the dll responsibe for drawing the images on the cards, King, Queen, 1, 2, Ace,... This dll is shared between all card games in Windows: solitaire, Freecell,... and my code too :)
The sample was a control that represents a "Playing Card", with properties of number and shape, suffles decks for playing...
worth to see it, it is publishe don C# Corner
Using Cards.dll in a Windows Control Library
http://www.c-sharpcorner.com/Code/2003/Jan/Cards.asp
0 Comments:
Post a Comment
<< Home