c# - Customizing Properties -


I am creating some custom controls that are obtained from base custom controls that contain the following properties:

  public color border collar {receive BorderColor; } Set {if (! FollowsScheme) BorderColor = value; }} Public colors [] FillColors {Back {FillColors; } Set {if (! FollowsScheme) FillColors = value; }} Public Child FoloseShemem {Receive; Set; }   

I am attempting to do this if the user is false for set-up phalosacci, then only they can edit the border collar and fillers properties if they are true, if they are true Can not edit properties, in that code you can see what I tried to do and thought it would work, but when I create a solution and add control to a form, then visual studio Micro crashes. How should I do this?

I would explain better, if Folsheme is set to true, then on the OnPent method the code will attract control on the basis of the border and fill collars, which are filled with a stable range. If the colors for the subject are set to false, then the method will take the properties of the border collator and filler, and calculate a new plan and the private property listed for those colors Will be set up issues and then they will be used for the control.

Understand that when you add control to your form, Visual Studio can render that control Run the necessary code so that it can be displayed in the designer.

Your code throws a stack overflowaxation which later crashes Visual Studio.

This exception has increased because your property setter is infinitely recursive, so there is a solution to present an eggplant field to keep the value:

  ; Public color border collar {receive {this.borderColor return; } Set {if (! FollowsScheme) this.bordercolor = value; }}    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -