Help pls, 'SelectionFont' in RichTextBox control 
Author Message
 Help pls, 'SelectionFont' in RichTextBox control

     In word processing softwares like MSWord, if there
are more than one type of font in the text we selected,
the fonts select ComboBox in the toolbar will be blanked,
like wise if the text we selected contains different sizes
of fonts,then the size select ComboBox in the toolbar will
be blanked. To give the same effect in VB.NET i tried with
the RichTextBox control, in RichTextBox if the text we
selected contains more than one type of font then the
'SelectionFont' property will be 'Nothing', so we can keep
track of the type of font, but I could not keep track of
the font size, is there any way to know whether there are
different sizes of fonts in the selection we made in the
RichTextBox control? kindly awaiting for an advice.

                                                thanks lot



Thu, 15 Dec 2005 16:54:11 GMT  
 Help pls, 'SelectionFont' in RichTextBox control
This is a VB6 and earlier news group so you would be better asking in a
dotnet group.

In vb6, if there are multiple font sizes in the selected piece of text then
the property richtextbox1.SELFONTSIZE returns null otherwise it returns the
font size.

HTH,

Simon


Quote:
>      In word processing softwares like MSWord, if there
> are more than one type of font in the text we selected,
> the fonts select ComboBox in the toolbar will be blanked,
> like wise if the text we selected contains different sizes
> of fonts,then the size select ComboBox in the toolbar will
> be blanked. To give the same effect in VB.NET i tried with
> the RichTextBox control, in RichTextBox if the text we
> selected contains more than one type of font then the
> 'SelectionFont' property will be 'Nothing', so we can keep
> track of the type of font, but I could not keep track of
> the font size, is there any way to know whether there are
> different sizes of fonts in the selection we made in the
> RichTextBox control? kindly awaiting for an advice.

> thanks lot



Fri, 16 Dec 2005 18:28:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help me pls, SelectionFont in RichTextBox control

2. '.selectionfont'

3. '.selectionfont'

4. SelectionFont in RichTextBox control

5. can't pass value--pls help

6. Pls Help-VB4 w/SQL 6.5 can't connect

7. Pls Help: SQL Statement and "'

8. **************!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Help me !!!!!!!!!!!!!!!!!!!!!!!!'''''''''''''''''''''''*************

9. PLS Help, I don't know why to write

10. Pls Help: SQL Statement and "'

11. OFFICE ASSISTANTS WITH VB5 PLS HELP IT'S DRIVING ME NUTS :O

12. PLS Help, I don't know why to write

 

 
Powered by phpBB® Forum Software