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

C#

 
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 
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 
So if your talking about this it still doesn't work:

private void button10_Click(object sender, EventArgs e)
{
        for (int i = 0; i < this.Controls.Count; i++)
        {
            TextBox tb = Controls[i] as TextBox;

            if (tb != null)
            {
                tb.Text = "";
            }

        }

        // Clear all the combo boxes and richtextboxes on the form
        Phone2Listbox.Items.Clear();
        phoneListbox.Items.Clear();
        AuthPhone1Listbox.Items.Clear();
        AuthPhone2Listbox.Items.Clear();
        AuthPhone3Listbox.Items.Clear();
        MedAllergiesListbox.Items.Clear();
        MedPhoneListbox.Items.Clear();
        EmergPhoneListbox.Items.Clear();
        PaidToDateListbox.Items.Clear();
        richTextBox1.Clear();
        othercomments.Clear();
}



Is that what you were talking about?
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 
GeneralRe: How to clear all textboxes on a form with a button Pin
Ravenet9-Mar-08 18:13
Ravenet9-Mar-08 18:13 
QuestionTimer Pin
nelsonpaixao9-Mar-08 15:56
nelsonpaixao9-Mar-08 15:56 
GeneralRe: Timer Pin
Ravenet9-Mar-08 16:33
Ravenet9-Mar-08 16:33 

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.