Groups | Blog | Home
all groups > dotnet compact framework > october 2004 >

dotnet compact framework : TabPage.Focus()


Alex Feinman [MVP]
10/7/2004 12:28:32 AM
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);

--
Alex Feinman
---
Visit http://www.opennetcf.org
[quoted text, click to view]

Martin Sommer
10/7/2004 8:26:08 AM
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

Martin Sommer
10/7/2004 9:44:18 AM
Hi Alex,

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

Thank you,
Martin Sommer

[quoted text, click to view]

AddThis Social Bookmark Button