FontDialog

  • Thread starter Thread starter joannelai
  • Start date Start date
J

joannelai

Hi,

In my application, I would like to use a FontDialog which allows
users to change some options of font of the data in DataGrid. However,
I don't want to let the users to modify the face of the font (the
options that would be allowed are bold, italic, color...). I wonder if
somebody know if I am able to make the "face listbox" in the
FontDialog invisible, or if I am able to eliminate all the non-current
font face from the "face listbox".

Any help is appreciated :)

Joanne
 
I beleive this is not supported by the default implementation of
FontDialog. you may try to drive a new class - say CustFontDialog - from
the FontDialog class and before showing it hide or - I prefer - disable the
controls.
An alternative, since the options you want are simple, you may create a
simple dialog for them.

Thanks,
Mohamed

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top