Click here to Skip to main content
15,924,193 members
Home / Discussions / C#
   

C#

 
GeneralRe: Working with datagridview ? Pin
Christian Graus9-Mar-08 19:27
protectorChristian Graus9-Mar-08 19:27 
GeneralCAS, WPF & plugin question Pin
Super Lloyd9-Mar-08 18:15
Super Lloyd9-Mar-08 18:15 
Questionhow to display crystal reports at the client PC Pin
Sadaf Naeem9-Mar-08 18:07
Sadaf Naeem9-Mar-08 18:07 
GeneralRe: how to display crystal reports at the client PC Pin
Ravenet9-Mar-08 18:23
Ravenet9-Mar-08 18:23 
QuestionHow to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 16:49
Jacob Dixon9-Mar-08 16:49 
AnswerRe: How to clear all textboxes on a form with a button Pin
KaptinKrunch9-Mar-08 16:57
KaptinKrunch9-Mar-08 16:57 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:05
Jacob Dixon9-Mar-08 17:05 
GeneralRe: How to clear all textboxes on a form with a button Pin
KaptinKrunch9-Mar-08 17:10
KaptinKrunch9-Mar-08 17:10 
Here's an example. You need to "cast" it to the type of control you expect it to be and not the control object it self. Simply comparing its types wont give you access to the, in this case a TextBox, properties like .Text and so forth.


foreach (Control txt in this.Controls)
{
if (txt.GetType() == typeof(System.Windows.Forms.TextBox))
{
TextBox txtbx = (TextBox)txt;
txtbx.Text = "";
}
}

Just because we can; does not mean we should.

GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:20
Jacob Dixon9-Mar-08 17:20 
GeneralRe: How to clear all textboxes on a form with a button Pin
Christian Graus9-Mar-08 17:35
protectorChristian Graus9-Mar-08 17:35 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:42
Jacob Dixon9-Mar-08 17:42 
GeneralRe: How to clear all textboxes on a form with a button Pin
Christian Graus9-Mar-08 19:28
protectorChristian Graus9-Mar-08 19:28 
GeneralRe: How to clear all textboxes on a form with a button Pin
KaptinKrunch9-Mar-08 17:48
KaptinKrunch9-Mar-08 17:48 
AnswerRe: How to clear all textboxes on a form with a button Pin
Christian Graus9-Mar-08 17:41
protectorChristian Graus9-Mar-08 17:41 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:48
Jacob Dixon9-Mar-08 17:48 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:51
Jacob Dixon9-Mar-08 17:51 
AnswerRe: How to clear all textboxes on a form with a button Pin
Ravenet9-Mar-08 17:50
Ravenet9-Mar-08 17:50 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:54
Jacob Dixon9-Mar-08 17:54 
GeneralRe: How to clear all textboxes on a form with a button Pin
Ravenet9-Mar-08 17:58
Ravenet9-Mar-08 17:58 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 18:03
Jacob Dixon9-Mar-08 18:03 
GeneralRe: How to clear all textboxes on a form with a button Pin
Ravenet9-Mar-08 18:07
Ravenet9-Mar-08 18:07 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:58
Jacob Dixon9-Mar-08 17:58 
GeneralRe: How to clear all textboxes on a form with a button Pin
Christian Graus9-Mar-08 18:01
protectorChristian Graus9-Mar-08 18:01 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 18:08
Jacob Dixon9-Mar-08 18:08 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 18:10
Jacob Dixon9-Mar-08 18:10 

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.