473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TabControl about to switch event in the Compact Framework

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
Nov 19 '05 #1
2 2054
-----Original Message-----
Hello,

I need to be able to intercept a TabControl BEFORE it switchs pages and dosome things. There doesn't appear to be an event for that in the CompactFramework using VB.NET. Yes I know that I can get a notification AFTER thepage 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.
Nov 19 '05 #2
Hello,

"grog" <gr**@precisionds.com> schrieb:
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
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Nadav | last post by:
Hi, I am using FileStream's Async API: BeginRead/EndRead, upon completion callback execution I use the read data and call EndRead, Taking that in mind, I Wonder... does calling EndRead will cause...
3
by: Henry Wu | last post by:
Hi, NumericUpDown control has a InterceptArrowKeys property, is there such a thing for a TabControl? I want to prevent the TabPages from switching to one another when the Left & Right arrow keys...
0
by: Gianluca | last post by:
Hi All, i'm experencing a frustrating and strange behaviaour : I created a Windows project in VB.NET 2003 with a form and then I added a TabControl on the form, and added 5 TabPages on...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
5
by: Alien2_51 | last post by:
I have a problem with a ListBox control that is on a TabControl, it seems to be forgetting which items are selected in the list when I tab off the current tab, here's my winform code... I even...
2
by: Aspnot | last post by:
I have a TabControl that is on a form that is bound to a DataSet. I bind the dataset to the form in the Form_Load event. The TabControl has 2 TabPages. The first TabPage contains a button and a...
4
by: Jason Rangle | last post by:
I am not sure how to use this even properly. When I have it as follows I have to click on the tabPage1 for anything to show. TIA. namespace TabLayout { public partial class TabLayout : Form...
1
by: Magnus Sthlm | last post by:
Hi! I'm developing an application for Pocket PC Windows Mobile 5. I'm using Compact Framework 2.0 C#. No problem adding the TabControl but I can't get it be maximized. It leaves the black border...
1
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two tabpages. When I set tab control's Alignment property to Right, tab texts (captions) disappear. Does anybody...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.