Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
AnswerRe: Invoking DirectX 9 Pin
Bekjong11-Dec-06 2:01
Bekjong11-Dec-06 2:01 
GeneralRe: Invoking DirectX 9 Pin
Thitechx11-Dec-06 23:07
Thitechx11-Dec-06 23:07 
GeneralRe: Invoking DirectX 9 Pin
Bekjong11-Dec-06 23:37
Bekjong11-Dec-06 23:37 
Questioniterating through a datagridview and getting the value of unbound combobox Pin
Rocky#11-Dec-06 0:51
Rocky#11-Dec-06 0:51 
QuestionCreating Un-Installer application in C# Pin
kaliem11-Dec-06 0:29
kaliem11-Dec-06 0:29 
GeneralRe: Creating Un-Installer application in C# Pin
kaliem11-Dec-06 0:44
kaliem11-Dec-06 0:44 
AnswerRe: Creating Un-Installer application in C# Pin
Vasudevan Deepak Kumar11-Dec-06 4:19
Vasudevan Deepak Kumar11-Dec-06 4:19 
QuestionHolding the form untill all controls are painted Pin
AB777111-Dec-06 0:23
AB777111-Dec-06 0:23 
AnswerRe: Holding the form untill all controls are painted Pin
V.11-Dec-06 0:45
professionalV.11-Dec-06 0:45 
QuestionCapturing RightClick on DataGrdiView Pin
t4ure4n10-Dec-06 23:52
t4ure4n10-Dec-06 23:52 
AnswerRe: Capturing RightClick on DataGrdiView Pin
Robert Rohde11-Dec-06 0:44
Robert Rohde11-Dec-06 0:44 
GeneralRe: Capturing RightClick on DataGrdiView Pin
t4ure4n11-Dec-06 0:57
t4ure4n11-Dec-06 0:57 
Questioniterating through tabpages in a tabcontrol Pin
Yustme10-Dec-06 23:20
Yustme10-Dec-06 23:20 
Hi,

I'm trying to check if a certain tabpage is selected.

This is how i tried it:

foreach (TabPage tabControl in this.tabControl1)
{
if (this.tbp1)
{

}
}

I didn't find any property which represents "selected" for this.tbp1.

And i also got an error in the foreach statement which says:

foreach statement cannot operate on variables of type 'System.Windows.Forms.TabControl' because 'System.Windows.Forms.TabControl' does not contain a public definition for 'GetEnumerator'

How can i iterate through my tabpages in a tabControl and check if a certain tabpage is selected or active?

Thanks in advance!

AnswerRe: iterating through tabpages in a tabcontrol Pin
Martin#10-Dec-06 23:40
Martin#10-Dec-06 23:40 
GeneralRe: iterating through tabpages in a tabcontrol Pin
karam chandrabose11-Dec-06 0:44
karam chandrabose11-Dec-06 0:44 
AnswerRe: iterating through tabpages in a tabcontrol Pin
Robert Rohde11-Dec-06 0:45
Robert Rohde11-Dec-06 0:45 
GeneralRe: iterating through tabpages in a tabcontrol Pin
Yustme11-Dec-06 2:02
Yustme11-Dec-06 2:02 
AnswerRe: iterating through tabpages in a tabcontrol Pin
quiteSmart11-Dec-06 1:13
quiteSmart11-Dec-06 1:13 
Question[Message Deleted] Pin
rs200610-Dec-06 23:16
rs200610-Dec-06 23:16 
AnswerRe: How to control the controls of another form from current form Pin
Martin#10-Dec-06 23:53
Martin#10-Dec-06 23:53 
AnswerRe: How to control the controls of another form from current form Pin
Colin Angus Mackay11-Dec-06 0:18
Colin Angus Mackay11-Dec-06 0:18 
AnswerRe: How to control the controls of another form from current form Pin
quiteSmart11-Dec-06 1:09
quiteSmart11-Dec-06 1:09 
GeneralRe: How to control the controls of another form from current form Pin
Colin Angus Mackay11-Dec-06 2:06
Colin Angus Mackay11-Dec-06 2:06 
GeneralRe: How to control the controls of another form from current form Pin
Pete O'Hanlon11-Dec-06 2:17
mvePete O'Hanlon11-Dec-06 2:17 
JokeRe: How to control the controls of another form from current form Pin
quiteSmart11-Dec-06 2:26
quiteSmart11-Dec-06 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.