Regd----Half Word Selection
Hi,
Even after writing this statement,
"this.AutoWordSelection = false", it still selects automatically,how to avoid auto selection apart from this statement.I want to select Three and a half word in a richtextbox.Try it!
Thanks in advance,
Regards,
Manohar.
SIGN IN To post a reply.
6 Replies
AD
Administrator
Syncfusion Team
September 26, 2005 10:15 AM UTC
Hi Manohar,
Can you post a small working sample showing the problem?
Best regards,
Jay N
MA
manohar
September 26, 2005 10:42 AM UTC
Hi Jay,
What I am attaching is not executable version,but you can see in the code what I am trying to say.In DBGrid.cs you can see Richtextcell as one cell model in the grid and in richtextbox.cs constructor you can see I am assigning "this.AutoWordSelection = false".
Hope this will help in giving me the required solution,if not pls let me know.
Regards,
Manohar.
SelectionPb_204_9211_6587.zip
AD
Administrator
Syncfusion Team
September 27, 2005 12:01 PM UTC
Hi Manohar,
Can you try accessing the control in the CurrentCellControlGotFocus and try settting the AutoWordSelection property?
Here is a sample that works for InPlaceRichText Cell.
Best regards,
Jay N
MA
manohar
September 28, 2005 09:17 AM UTC
Hi Jay,
As you said I wrote "grid_CurrentCellControlGotFocus".The event is getting fired, everthing is happeneing, but autoselection is not disabling.I pasted the code below.Kindly give some other solution.
private void grid_CurrentCellControlGotFocus(object sender, ControlEventArgs e)
{
activeRichTextBox.AutoWordSelection = false;
}
Regards,
Manohar
AD
Administrator
Syncfusion Team
September 28, 2005 11:19 AM UTC
Hi Manohar,
Do you see the problem in the above sample too? Below are the screenshots, you could see half word is selected. I am using 3.2.1 ver / .NET 1.1
RichText_screenshots.zip
Best regards,
Jay N
MA
manohar
September 28, 2005 11:41 AM UTC
Hi Jay,
First let me thank for your patience and tremendous support.
Actually we can select half a word,but the problem is free flow is not there,what i mean exactly is suppose if we have 12 characters in a word,by the time you select 3 or 4 characters from the start/end of the word it will select the whole word,which should not happen.If this the case think of small words.Kindly if still anything can be improved upon the existing,please let me know.
Regards,
Manohar.
SIGN IN To post a reply.
- 6 Replies
- 2 Participants
-
MA manohar
- Sep 26, 2005 09:23 AM UTC
- Sep 28, 2005 11:41 AM UTC