I have a tab control with 3 tabs. I was wondering how I can do the following: 1. I want to show only 1 page of the tab control without the tab header name when i start the program. 2. When i hit ctl + shft + , I would like my tab control to display all 3 tabs with the header. 3. When i hit ctl + shft + , I would like my tab control to display only the first tab with no header.
Since you wrote "+" twice my version uses control+shift+something (in this case the letter 'A' (65)). I'm using a DLL function called GetKeyState which identifies the state of different keys. This has the advantage of getting all three at the same time, but the disadvantage of running all the time and of being windows specific. You can modify it. You can also use Dennis's version with slight modifications or as it is.
Here's Dennis's version, modified slightly and saved in 7.0. Now it requires another key with control and shift. A is 65, B is 66 and so on. This is better than my version.
Sure. It doesn't do exactly what you want but should be simple to modify. To control individual tabs, you use the read only property pages. This returns an array of references. You use an index array function to get a specific page. For example, if you want to manipulate page two, index element 1 of the pages property. The returned reference can be used to create properties for just page 2.
I like your example. However I already have a while loop running my program. How can I fit your code into my program. Basically I am asking can I run 2 while loops. One for my program and the other for any time someone enter ctl + shift + A.