K
Karuppasamy
Hi
I have created a User Control Containing a Panel and Rich Text Box. The
Panel
contains some other controls used for formatting the Text entered in the
Rich Text Box.
My Requirement is that The Panel has to be visible only when the User
Control got Focus and the Panel should not be shown to user when the User
Control lost its focus.
I have used the Following code, but its not working
this.GotFocus += new System.EventHandler(this.iCDCRichTextSection_GotFocus);
this.LostFocus += new System.EventHandler(this.iCDCRichTextSection_
LostFocus);
private void iCDCRichTextSection_ GotFocus (object sender, System.EventArgs
e)
{
this.IsControlPanelVisible = true;
}
private void iCDCRichTextSection_LostFocus (object sender, System.EventArgs
e)
{
this.IsControlPanelVisible = fasle;
}
why? What is the problem with this code?
Waiting for your reply.
Thanks and Regards
Karuppasamy Natarajan
I have created a User Control Containing a Panel and Rich Text Box. The
Panel
contains some other controls used for formatting the Text entered in the
Rich Text Box.
My Requirement is that The Panel has to be visible only when the User
Control got Focus and the Panel should not be shown to user when the User
Control lost its focus.
I have used the Following code, but its not working
this.GotFocus += new System.EventHandler(this.iCDCRichTextSection_GotFocus);
this.LostFocus += new System.EventHandler(this.iCDCRichTextSection_
LostFocus);
private void iCDCRichTextSection_ GotFocus (object sender, System.EventArgs
e)
{
this.IsControlPanelVisible = true;
}
private void iCDCRichTextSection_LostFocus (object sender, System.EventArgs
e)
{
this.IsControlPanelVisible = fasle;
}
why? What is the problem with this code?
Waiting for your reply.
Thanks and Regards
Karuppasamy Natarajan