Class Modules ???

skiphooper

Registered User.
Local time
Today, 15:27
Joined
Nov 29, 2000
Messages
76
Hi Everyone,
On a tabctl's onchange event there is no
option to cancel.

My question is this:
Can the option to cancel be added to a tabctl
( on the onchange event ) using a
Class Module, or is my understanding of what
can be done in class modules all wrong.

Thanks In Advance
Skip

P.S. I'm not looking for the code to do
this ( although that would be great )
I just want to know if it is possible through
a class module.

[This message has been edited by skiphooper (edited 04-17-2001).]

[This message has been edited by skiphooper (edited 04-18-2001).]
 
hey skip,

probably there is only one way: Apply for changes in the tabCrl at Microsoft's!

I suppose you insert a form_Load procedure storing the original value of the tabCrl (as class-variable in the header of the form's class module). After every change (tabCtl_OnChange()) you set it to the new value - or reset it:

Option Explicit
private intTabCtlOldValue as Integer

private sub tabCtl_OnChange()
if (...) then ' Cancel-condition
me.tabCtl.Value=intTabCtlOldValue
else
intTabCtlOldValue=me.TabCtl.Value
endif
end sub

Mic
 
Hi Mic,

Thanks for the reply,
I'll give it a try.

Skip
 

Users who are viewing this thread

Back
Top Bottom