Link to home
Start Free TrialLog in
Avatar of stephenwilde
stephenwilde

asked on

net tab stopping user seeing contents

Hi

Have windows application c#

Tab - I want on click event of tab - to show warning message if no permission

But in method tab selected it is too late as after messagebox it still goes to tab contents - where do I put code please
Rgds
Stephen
Avatar of elimesika
elimesika
Flag of Israel image

HI

You should use the Selecting Event that has TabControlCancelEventArgs  
Avatar of stephenwilde
stephenwilde

ASKER

Hi

Thanks for your reply - but could you expain your soution a little bit more please and I cannot find a cancel event

Rgds
stephen
ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you