|
I have created a control based on the (System.Windows.Forms.ContainerControl), everything until now was fine, I am adding the final touches to the control, and one of those touches is preventing Visual Studio.NET from automatically generating these two lines of code for my control.
this.ltOutlookPanel1.DockPadding.Left = 1; this.ltOutlookPanel1.DockPadding.Right = 2;
I did try to override the (DockPadding) property, but this did not work, I try to create a new private property with the same name, and VS.NET was still able to access the property.
Who can I hide this property completely, or at least hide if from the code generator, I tried the (ShouldSerializeDockPadding) and it does not work either
It is not a big problem for me if the code is generated for that property, I just need the idea of how can I hide a property like that.
|