how to embed in project

Topics: Developer Forum, Project Management Forum, User Forum
Jun 25, 2013 at 4:08 AM
i am new to tihis please help me i dont knw how to use this src to my project


regards
dineshkumar R
Aug 22, 2013 at 4:29 PM
The proper way would be to change the source into a DLL, but if you already have a 'common' library that you'd rather integrate this into (since it's so small), here's a simple way to integrate it. Create a folder in a project of yours, and drag & drop the LonghornForm.cs file into it. Then, try changing 1 of your existing Forms into using LonghornForm instead of Form (or MyCustomForm : Form -> MyCustomForm : Kobush.Windows.Forms.LonghornForm). This will generate a compiler error for a missing type, find that type in the source (probably the name of a .cs file, actually) and copy that file into the folder like you did with LonghornForm. Keep doing this until the project compiles. This should get you going, although you should also search the discussions for bugfixes - I needed to change one instance usage of 'GetDCEx' with 'GetWindowDC' to get it working on Windows 7.