TabControl about to switch event in the Compact Framework

  • Thread starter Thread starter Bob Trabucco
  • Start date Start date
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
 
-----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.
 
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
 
Back
Top