-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: vipin_gkv
Message 1 in Discussion

Hello Folks,                     Happy New Year to Whole Group :)                     
I am trying to make a RichTextBox Editor.                     The problem is that I 
have made a Text Bold,Then Italic,Then                     UnderLine.                  
     Bold , Bold, Bold ,  Remove UnderLIne                       Notice above that If 
I Remove Underline only Underline                     Property has vanished rest (Bold 
and Italic are Retained)                     With My Code All (Bold + Italic) 
properties are also vanishing.                     And Text is a simple regular Text 
because I am converting  it to                     Regular If I Undo Underlining.      
                          My Concept of Doing / Undoing a Function for ex ample 
Underline                     is as Follows   
-----------------------------------------------------------------------------          
         
Case 2                  'UnderLine 
Dim oCurrentFont2 As Font = RichTextBox1.SelectionFont 
Dim oNewStyle2 As FontStyle 
If (RichTextBox1.SelectionFont.Underline) Then           // If Text is Already 
Underlined 
oNewStyle2 = FontStyle.Regular                                   // Change it to 
Regular 
Else 
oNewStyle2 = FontStyle.Underline                               // Change it to 
Underline 
End If 
RichTextBox1.SelectionFont = New Font(oCurrentFont2.FontFamily, oCurrentFont2.Size, 
oNewStyle2) 
Problem is that This code is Undoing other previous changes in Text(Vanishing prevoius 
 Bold and Italic changes made by me Because I changed whole Text to Regular) 
Is there a way out to Undo Only Selective change and Not All of Previous changes.???? 
I hope I am able to Explain My Problem...Please Let me Know :) 
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to