Tab control problem

GaelicFatboy

Registered User.
Local time
Today, 21:13
Joined
Apr 17, 2007
Messages
100
Would someone be able to help with a tab control problem I've got?

I'm currently using a form with two pages on a TAB Control, and need to trap the event when either Page-1 or Page-2 tab in clicked with a mouse. Alas I'm only able to generate a click event if I click the area to the right of the last tab, which seems a little odd to me. I was expecting a click event to occur when I selected a page tab itself.

Cheers

D
 
Simple Software Solutions

Use the TabCtrl.Change Event

Eg

Sub TabCtrl_Change()

Msgbox TabCtrl.Value

Whereby the value is the index number of the page clicked starting at 0

CodeMaster::cool:
 
Cheers for that all seems to be working ok. I do though fail to see what use the on click event is. Hay Ho there you go.

D
 
Cheers for that all seems to be working ok. I do though fail to see what use the on click event is. Hay Ho there you go.

D

Believe me, I think we all have wondered why it does what it does. But thankfully there is a way to work it as you found out with the Change event.
 

Users who are viewing this thread

Back
Top Bottom