Click here to Skip to main content
15,898,732 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
<pre lang="css">public class TxtProNet : TextBox
  {
    private Color FBC;
    private Color FFC;
    private Font FF;
    private bool FTS;
    private Color LFBC;
    private Color LFFC;
    private Font LFF;
    private bool ETT;
    private bool ETC;
    private bool AS;
    private bool MER;
    public double TextValue;
    private bool TFO;
    private bool TEO;
    private bool TNO;
    private bool TDS;
    private bool TAC;
    private bool CTRL;
    private bool ALT;
    private bool SHIFT;
    private string TOC;
    private string ME;
    public string NumberToChar;
    private int i;
    private string YY;
    private string STR;
    private bool MESD;
    private bool MEIFS;



    public TxtProNet()
    {
      this.FBC = Color.Yellow;
      this.FFC = Color.Blue;
      this.FF = Control.DefaultFont;
      this.FTS = true;
      this.ETT = true;
      this.ETC = true;
      this.MER = true;
      this.TAC = true;
      this.TOC = "";
      this.ME = "";
      this.NumberToChar = "صفر";
   base.\u002Ector();//<<-------problem
    }
}
Posted
Updated 30-Aug-13 1:29am
v3
Comments
Sriram Bala 30-Aug-13 7:29am    
Hi, I could not understand your question. provide some more information.
Sriram.B
Nelek 30-Aug-13 7:39am    
Please don't think we can read minds or do astral projections to see your monitor. If you need help, the least you could do is to add some relevant code to your question or to explain your problem in such a way, that the users of CP can understand it. Otherwise, nobody will be able to help you.

1 solution

You call it like this;
C#
public TxtProNet() : base() {
 // ...
}


It's not called from within the constructor, it has to be called first.

Hope this helps,
Fredrik
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900