Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Changing font of ErrorProvider and DataGridViewRow.ErrorText
 

Changing font of ErrorProvider and DataGridViewRow.ErrorText

Hi all,

I am developing an Windows Forms application in VS2005 using .NET 2.0. The GUI of this application has a custom font. Note that I don't want to change the overall font of Windows in the via Control Panel. For some controls (forms, buttons) it is no problem to change the font. For others however (MessageBox, Tooltip, ErrorProvider, ErrorText of a DataGridViewRow) it is not possible, or, unclear to me how to do this easily.

For MessageBoxes en Tooltips I have accomplished a solution that is satisfactory to some extend (see also anotherthread in this forum http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1618381&SiteID=1)

Could somebody give me some tips how to change the font when using an ErrorProvider and DataGridViewRow.ErrorText?

Regards,

Mark

MarkyMark unique attempt_5847  Wednesday, November 07, 2007 9:53 AM

Hi,yes�ErrorProvider does't have font property by design.I recommend you to create your own ErrorProvider. You can use a lable and a icon instead.

Best Regards

Gavin

Gavin Jin - MSFT  Tuesday, November 13, 2007 5:13 AM

Well, not really. I couldn't find any Font property on ErrorProvider.

MarkyMark unique attempt_5847  Monday, November 12, 2007 8:34 AM

Hi,yes�ErrorProvider does't have font property by design.I recommend you to create your own ErrorProvider. You can use a lable and a icon instead.

Best Regards

Gavin

Gavin Jin - MSFT  Tuesday, November 13, 2007 5:13 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows Control (Dont know the name)
• Unable to maintain Viewstate when child controls events are fired
• Control Custom Properties
• Suspending Paint Event
• How to access Method of control created at runtime?
• statusbar panels question
• Problem with DataGridView CustomControl
• How does ListBox paint in design mode?
• How to change button image on Mouse enter, MouseLeave and Click?
• Combobox event usercontrol