Custom event handler not getting initialized
<p>Following is the Code i am using </p>

<pre><code>class ImpersonatedTab : System.Windows.Forms.TabPage  
    {
        Credentials _cred = new Credentials();

        public delegate void Savesetting(TabData Tb);
        public event Savesetting TriggerSaveSetting;


        public ImpersonatedTab(TabData tb)
        {          
            ........
        }

        private void SaveData()
        {
            TriggerSaveSetting(_tabdata);
        }

       private Onclick()
       {
         SaveData();
       }


     }
</code></pre>

<p>When i call Onclick function within ImpersonatedTab class it returns error saying TriggerSaveSetting is null</p>

<p>I initialize this call like </p>

<pre><code>ImpersonatedTab Tab = new ImpersonatedTab(tb);
Tab.TriggerSaveSetting += new ImpersonatedTab.Savesetting(Tab_TriggerSaveSetting);
</code></pre>

<p>i have created events earlier, but am not able to figure out whats wrong with this one.. i am sure should be some silly mistake.</p>
