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

C#

 
GeneralRe: folder and files Pin
Michael Sync21-Nov-07 18:52
Michael Sync21-Nov-07 18:52 
QuestionHelp with export Pin
MumbleB20-Nov-07 19:42
MumbleB20-Nov-07 19:42 
AnswerRe: Help with export Pin
Prateek G20-Nov-07 21:30
Prateek G20-Nov-07 21:30 
GeneralRe: Help with export Pin
MumbleB20-Nov-07 22:55
MumbleB20-Nov-07 22:55 
Questionhow to retrieve value from port Pin
sivaramireddy p20-Nov-07 19:39
sivaramireddy p20-Nov-07 19:39 
QuestionConvert doc. to rtf Pin
arslanjatt20-Nov-07 19:27
arslanjatt20-Nov-07 19:27 
QuestionClearing TextBox Text Pin
sindhutiwari20-Nov-07 18:50
sindhutiwari20-Nov-07 18:50 
AnswerRe: Clearing TextBox Text Pin
Sun Rays20-Nov-07 19:21
Sun Rays20-Nov-07 19:21 
sindhutiwari wrote:
foreach(Control c in this.Controls)
if(c is TextBox)
( c as TextBox).Clear();


Hi,
here in this loop you have to check for tab control abd then you have to again loop for controls in tab control. like this

foreach(Control c in this.Controls)<br />
if(c is TextBox)<br />
( c as TextBox).Clear(); <br />
if(c is TabControl)<br />
 {<br />
 foreach(Control c1 in this.Controls)<br />
if(c1 is TextBox)<br />
( c1 as TextBox).Clear(); <br />
<br />
 }<br />


Thanks,
Sun Rays

Rate this post if you like answer.


My Articles

GeneralRe: Clearing TextBox Text Pin
sindhutiwari20-Nov-07 19:24
sindhutiwari20-Nov-07 19:24 
QuestionGraphing Control Pin
gongchengshi20-Nov-07 18:37
gongchengshi20-Nov-07 18:37 
AnswerRe: Graphing Control Pin
Paul Conrad20-Nov-07 18:46
professionalPaul Conrad20-Nov-07 18:46 
AnswerRe: Graphing Control Pin
gongchengshi20-Nov-07 19:15
gongchengshi20-Nov-07 19:15 
QuestionAbout dropdownlist.... Pin
Rajeshwar Code- Developer20-Nov-07 18:04
Rajeshwar Code- Developer20-Nov-07 18:04 
AnswerRe: About dropdownlist.... Pin
Christian Graus20-Nov-07 18:11
protectorChristian Graus20-Nov-07 18:11 
GeneralRe: About dropdownlist.... Pin
Rajeshwar Code- Developer20-Nov-07 18:37
Rajeshwar Code- Developer20-Nov-07 18:37 
GeneralRe: About dropdownlist.... Pin
Christian Graus20-Nov-07 18:46
protectorChristian Graus20-Nov-07 18:46 
AnswerRe: About dropdownlist.... Pin
arslanjatt20-Nov-07 19:50
arslanjatt20-Nov-07 19:50 
QuestionHow to click a button in a program Pin
sduhd20-Nov-07 17:11
sduhd20-Nov-07 17:11 
AnswerRe: How to click a button in a program Pin
MohammadAmiry20-Nov-07 17:47
MohammadAmiry20-Nov-07 17:47 
GeneralRe: How to click a button in a program Pin
sduhd20-Nov-07 19:45
sduhd20-Nov-07 19:45 
QuestionTreeView and SelectedNode (Snap To Node after Expand All) Pin
Jeffrey Walton20-Nov-07 16:22
Jeffrey Walton20-Nov-07 16:22 
QuestionDataadapter Pin
Assaf8220-Nov-07 15:35
Assaf8220-Nov-07 15:35 
AnswerRe: Dataadapter Pin
KennyPatel20-Nov-07 19:03
KennyPatel20-Nov-07 19:03 
QuestionGridview Pin
mojojojojo20-Nov-07 15:33
mojojojojo20-Nov-07 15:33 
AnswerRe: Gridview Pin
KennyPatel20-Nov-07 19:09
KennyPatel20-Nov-07 19:09 

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.