'DO CONTROLS USE PARENT'S FONT??

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I have a user control called TextControl on which I have a RichTextBox
control.

TextControl1 is an instance of the User Control on a form.

I do the following in the form:

TextControl1.Font = New Font(FontFamily.GenericMonospace, 10,
FontStyle.Regular, GraphicsUnit.Point)

And the RichTextBox takes on the specified font - which is what I wanted but
why does it happen?

Does a control (RichTextBox) use the parent's (UserControl) font sometimes??



Thanks in advance
 
Actually I changed the usedcontrol's font and the control on it reflected
the change.


Thanks for the info
 
Back
Top