I have a problem on overriding method on vb.net
Here's the code :
Protected Overrides Sub TabControl1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles TabControl1.DrawItem
It throw me error :
Error 1 sub 'TabControl1_DrawItem' cannot be declared 'Overrides' because it does not override a sub in a base class. C:\Users\satrio.budiharmawan\AppData\Local\Temporary Projects\sieg01\Form1.vb 39 29 sieg01
The question is, how do I overrides that method?
If you are overriding the DrawItem method you would override
Protected Overrides Sub DrawItem..., but only if the class you are writing derives from TabControl.
If this is a Form where you simply want to create a handler for the TabControl1.DrawItem method, then just remove the Overrides from your sub definition. (This second point is what I think is more likely.)
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)