borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (help me)Next Topic (C++ IN PDF FORMAT FREE TO DOWNLOAD) New Topic New Poll Post Reply
AndreaVB Forum : C# : changeing text of all textboxes ! Solved Topic
Poster Message
Afshin_Zavar
Level: Professor


Registered: 17-07-2003
Posts: 84

Ads by Lake Quincy Media
icon changeing text of all textboxes !


Would you please tell me what's wrong with this piece of code ?

    {
      int i = 0;
     for( i=0; i<= this.Controls.Count;i++)
       if (  typeof( this.Controls ) is TextBox)
        ( (TextBox)this.Controls ).Text =" ";

   }


____________________________
Persia

04-03-2009 at 05:27 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
admin
Level: Administrator


Registered: 04-04-2002
Posts: 637
icon Re: changeing text of all textboxes !

Hi,

I'm not a C expert but shouldn't you use (i) to reference to the indexed control?

some syntax like

if (typeof(this.Controls) is TextBox) (TextBox)this.Controls.Text=" ";

let me know...

____________________________
AndreaVB

Ads by Lake Quincy Media
05-03-2009 at 10:35 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : C# : changeing text of all textboxes ! Solved Topic
Previous Topic (help me)Next Topic (C++ IN PDF FORMAT FREE TO DOWNLOAD) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder