The trick of adding an error icon to the header using an ImageList and then add a tooltip is not good, because it is specific to tab pages, and I cannot implement it in my class which is general to all controls. The problem is that when I use it for tab pages I get the result shown above. I would like to use it also for TabPages. This class is used for TextBoxes, NumericUpDowns etc. I have a class responsible for adding errors to a control, and showing them using an error provider. I do not know where to start, or how to approach this. Something like this (made with Photoshop): I would like the icon to be shown next to the tab page header. The error icon is shown to the right of the tab page, and it is cut-off by the tab control itself: When I try to use the following code: errorProvider1.SetError(tab, "error") Also, the error provider error icon has the functionality that when you hover the mouse on it, you see the error text, which you do not see if you simply add an icon to the header. Here it is about how the change the error provider error icon position to be inside the header instead of to the right of the tab page itself. The question there is about adding icons to tab pages. This is not a duplicate of Icons in TabControl C# - How?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |