I've got a tab control and some code that changed the tab color and the "empty space" to the right of the tabs.
The code to change the colors si triggered in the tabcontrol event DrawItem. In order for that code to work, the DrawMode property has to be set OwnerDrawFixed. I have some other code in a timer that depending on which tab page is selected, it performs a certain tasks. Well, when the DrawMode property is set from Normal to OwnerDrawFixed, I get an error on the following line: If myTabControl.SelectedTab Is NameOfTab Then PerformAction The error is: NullReferenceException was unhandled. Object reference not set to an instance of an object. I've commented all code in the drawitem event...so the DrawMode property seems to be hangin this. I'm not sure if this is enough info for you or not. I figured if someone was familiar with DawMode they may know. Thanks. Nick
