TabPage.Focus()

  • Thread starter Thread starter Martin Sommer
  • Start date Start date
M

Martin Sommer

Hi,

I am a first-timer at developing a C# Smart Device application (Pocket PC
2002), and I am experiencing a rather irritating problem. I have three
tabpages on a form. When i call tabPageXXX.Focus(); nothing happens, even
though the documentation says "Supported by the .NET Compact Framework.".

Has anybody got a solution?

Thank you,
Martin Sommer
 
What did you expect to happen? If you want to activate a tabpage, set the
SelectedIndex property on the parent TabControl:

myTabControl.SelectedIndex = 1;
or
myTabControl.SelectedIndex = myTabControl.TabPages.IndexOf(tabPage2);
 
Hi Alex,

I expected the TabPage to get "on top". Your code does the "trick". :-)

Thank you,
Martin Sommer
 
Back
Top