Custom Forms Designer
-
Dear Masters of .NET, Does anyone have proper sample or documentation about creating a custom forms designer like VS.NET's or SharpDevelop's designer. I have search the NET for quite a while, but no success. I also dug the SharpDevelop's code and found that without documentation it is very hard to see what the developers have done. Any help is welcome and appreciated.
C:\>csc *.cs Microsoft (R) Visual C# .NET Compiler error CS2001: Source file 'brains.cs' could not be found fatal error CS2008: No [brains.cs] specified C:\>
-
Dear Masters of .NET, Does anyone have proper sample or documentation about creating a custom forms designer like VS.NET's or SharpDevelop's designer. I have search the NET for quite a while, but no success. I also dug the SharpDevelop's code and found that without documentation it is very hard to see what the developers have done. Any help is welcome and appreciated.
C:\>csc *.cs Microsoft (R) Visual C# .NET Compiler error CS2001: Source file 'brains.cs' could not be found fatal error CS2008: No [brains.cs] specified C:\>
This is a complicated task, and understanding the SharpDevelope code isn't an unreasonable way to begin your task. If, on the other hand, you are not actually trying to duplicate all of the functionality, (maybe you only want labels, text boxes, and buttons on your forms), you could try simply writing the thing from scratch in a way that seems logical to you. This method requires using the container form's .Capture property in order to catch the clicks that normally would have set the focus to the child control, allowing you to select and move the controls. John :D