Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# append textbox

textBox1.Text += ("brown
");
textBox1.Text += ("brwn");
Comment

c# append textbox


    private void btnAppendText_Click(object sender, EventArgs e)
    {
        txtText.Text = string.Empty;
        DateTime startTime = DateTime.Now;
        for (int i = 0; i < 10000; i++)
        {
            txtText.AppendText(s);
        }
        DateTime endTime = DateTime.Now;
        txtTime.Text = (endTime.Ticks - startTime.Ticks).ToString();
    }

    private void btnConcante_Click(object sender, EventArgs e)
    {
        txtText.Text = string.Empty;
        DateTime startTime = DateTime.Now;
        for (int i = 0; i < 5000; i++)
        {
            txtText.Text += s;
        }
        DateTime endTime = DateTime.Now;
        txtTime.Text = (endTime.Ticks - startTime.Ticks).ToString();
    }

Comment

PREVIOUS NEXT
Code Example
Csharp :: c# relative path to project folder 
Csharp :: import time C# 
Csharp :: c# list index 
Csharp :: c# linq remove duplicate items from list of integer 
Csharp :: how to get key value from json object in c# 
Csharp :: get query string parameter from string value c# 
Csharp :: create char array c# 
Csharp :: unity check if a animator parameter trigger is activated 
Csharp :: WebClient c# with custom user agent 
Csharp :: how to make error sound c# 
Csharp :: custom array initializer in c# 
Csharp :: stop a thread c# 
Csharp :: How to get an array of months in c# 
Csharp :: unity create a child object 
Csharp :: c# get value from textbox 
Csharp :: change sprite of a sprite unity 
Csharp :: C# delete folder with all contents 
Csharp :: how set function when props update in vue 
Csharp :: c# search string array 
Csharp :: how to get hours and minutes from second in c# 
Csharp :: what is a protected int c# 
Csharp :: how to make panel scrollable c# 
Csharp :: how to write int array to console c# 
Csharp :: c# string remove 
Csharp :: get last element of array c# 
Csharp :: c# console header 
Csharp :: get char lowercase in c# 
Csharp :: inline creation dictionnary C# 
Csharp :: how to create a delegate in c# 
Csharp :: string list to object array in c# 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =