![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi, I have a TabControl in my Windows Mobile 5.0 application running .NET CF 2.0. I have a requirement that needs to be able to switch between tab pages using hot keys. Does any one have any idea how this can be achieved. I have written a simple function to test the functionality of actually switching the tabs programatically by calling a function. But it does not seem to work. Sample piece of code is below: if (String.Compare(e.KeyChar.ToString(), Keys.F.ToString(), true) == 0) { //findTabPage.Show(); //findTabPage.Focus(); //findTabPage.Update(); //((TabFindItemPanel)findTabPage.Controls[0]).Show(); //tabControl.Controls[tabControl.Controls.IndexOf(findTabPage)].Show(); tabControl.TabPages[tabControl.Controls.IndexOf(findTabPage)].Focus(); tabControl.TabPages[tabControl.Controls.IndexOf(findTabPage)].Show(); } findTabPage is a TabPage inside tabControl. The commented lines are things i tried and not working. So I tried various different routes. Thanks, Narasimham |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |