TabControl about to switch event in the Compact Framework

B

Bob Trabucco

Hello,

I need to be able to intercept a TabControl BEFORE it switchs pages and do
some things. There doesn't appear to be an event for that in the Compact
Framework using VB.NET. Yes I know that I can get a notification AFTER the
page switches but by then the screen already redrew and that is too late.

Am I missing something? Any sample code anyone?

Thanks in advance,

Bob
 
G

grog

-----Original Message-----
Hello,

I need to be able to intercept a TabControl BEFORE it switchs pages and do
some things. There doesn't appear to be an event for that in the Compact
Framework using VB.NET. Yes I know that I can get a notification AFTER the
page switches but by then the screen already redrew and that is too late.

Am I missing something? Any sample code anyone?

Thanks in advance,

Bob


.
You need to check Page.IsPostback on your page load and
only reload the controls if IsPostback is false. This
leaves the controls intact when the control event is
processed.
 
H

Herfried K. Wagner [MVP]

Hello,

grog said:
You need to check Page.IsPostback on your page load and
only reload the controls if IsPostback is false. This
leaves the controls intact when the control event is
processed.

He was talking about the TabControl (.NET Compact Framework), not ASP .NET.

Regards,
Herfried K. Wagner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top