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.EventHan dler(this.iCDCR ichTextSection_ GotFocus);
this.LostFocus += new System.EventHan dler(this.iCDCR ichTextSection_
LostFocus);
private void iCDCRichTextSec tion_ GotFocus (object sender, System.EventArg s
e)
{
this.IsControlP anelVisible = true;
}
private void iCDCRichTextSec tion_LostFocus (object sender, System.EventArg s
e)
{
this.IsControlP anelVisible = 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.EventHan dler(this.iCDCR ichTextSection_ GotFocus);
this.LostFocus += new System.EventHan dler(this.iCDCR ichTextSection_
LostFocus);
private void iCDCRichTextSec tion_ GotFocus (object sender, System.EventArg s
e)
{
this.IsControlP anelVisible = true;
}
private void iCDCRichTextSec tion_LostFocus (object sender, System.EventArg s
e)
{
this.IsControlP anelVisible = fasle;
}
why? What is the problem with this code?
Waiting for your reply.
Thanks and Regards
Karuppasamy Natarajan
Comment