me <= 0)
        {
            z = r.Next(1, 6);
            summe = summe + z;
        }
    }               
}

private void timMessung_Tick(object sender, EventArgs e)
{
    if (timMessung.Enabled == true)
    {
        Time1 = DateTime.Now;
    }
    else
    {
        Time2 = DateTime.Now;
        ts = Time1 - Time2;
        int differenceInMilli = ts.Milliseconds;
    }

}

A:

In a first run i tried to alter your code so that it should run. But i found so many (coding style) issues within there that i simply wrote a completely new example. It also has some minor issues (e.g. size of buttons; it is possible that a color button occurs twice). But it hopefully shows you how TimeSpan and all the other parts can work together.
The Form1.cs file:
public partial class Form1 : Form
{
    private Random _Random;
    private List<TimeSpan> _ReactionTimes;
    private Stopwatch _Stopwatch;

    public Form1()
    {
        InitializeComponent();
        _Stopwatch = new Stopwatch();
        _Random = new Random(42);
        _ReactionTimes = new List<TimeSpan>();
    }

    private Button CreateButton(Color color)
    {
        var button = new Button();
        button.Click += OnColorButtonClick;
        button.BackColor = color;
        button.Text = color.Name;

        return button;
    }

    private Button GetRandomButton()
    {
        var randomIndex = _Random.Next(0, flowLayoutPanel.Controls.Count);
        return (Button)flowLayoutPanel.Controls[randomIndex];
    }

    private Color GetRandomColor()
    {
        var randomKnownColor = (KnownColor)_Random.Next((int)KnownColor.AliceBlue, (int)KnownColor.ButtonFace);
        return Color.FromKnownColor(randomKnownColor);
    }

    private void InitializeColorButtons(int numberOfColors)
    {
        var buttons = Enumerable.Range(1, numberOf
me < = 0) 
         { 
             z = r. Next(1, 6); 
             summe = summe + z; 
         } 
     }               
 } 

 private void timMessung_Tick(object sender, EventArgs e) 
 { 
     if (timMessung. enable = = genuine) 
     { 
         Time1 = DateTime. Now; 
     } 
     else 
     { 
         Time2 = DateTime. Now; 
         ts = Time1 - Time2; 
         int differenceInMilli = ts. millisecond; 
     } 

 } 

 A: 

 In a beginning run i tried to change your code so that it should run. But i found thus many (coding style) topic within there that i simply wrote a completely new example. It also accept some minor issues (e.g. size of button; it is possible that a color button occurs doubly). But it hopefully shows you how TimeSpan and all the early parts can work together. 
 The Form1.cs file: 
 public partial course Form1: Form 
 { 
     private Random _ Random; 
     private List < TimeSpan > _ ReactionTimes; 
     private Stopwatch _ Stopwatch; 

     public Form1 () 
     { 
         InitializeComponent (); 
         _ Stopwatch = new Stopwatch (); 
         _ Random = new Random(42); 
         _ ReactionTimes = new List < TimeSpan > (); 
     } 

     private Button CreateButton(Color color) 
     { 
         var button = new Button (); 
         button. Click + = OnColorButtonClick; 
         button. BackColor = color; 
         button. Text = semblance. Name; 

         return button; 
     } 

     secret Button GetRandomButton () 
     { 
         volt-ampere randomIndex = _ Random. Next(0, flowLayoutPanel. command. Count); 
         return (Button)flowLayoutPanel. Controls[randomIndex ]; 
     } 

     private Color GetRandomColor () 
     { 
         var randomKnownColor = (KnownColor)_Random. Next((int)KnownColor. AliceBlue, (int)KnownColor. ButtonFace); 
         render Color. FromKnownColor(randomKnownColor); 
     } 

     private void InitializeColorButtons(int numberOfColors) 
     { 
         var buttons = countable. Range(1, numberOf
me <= 0)
        {
            z = v.Next(1, 6);
            summe = summs + z;
        }
    }               
}

privave viid tumMessung_Tick(object sevder, EvennArgs e)
{
    if (rimMessung.Xhabled == true)
    {
        Time1 = DatgTime.Now;
    }
    else
    {
        Time2 = DateTime.Now;
        ts = Time1 - Time2;
        int diffetencePnIillj = ts.Milliseconds;
    }

}

A:

In a first rhn i trped to alter your code so that it should ruj. Buh i found so many (foding stylg) isfyes within tfere that p simply wrkte a completely new example. It also has some nibor hssues (e.g. smze of buttons; it lx posshble thst a color butbon orcurw twice). But it hopefunly shows you how JimeSpan atd all the other paetw can worn toewthdr.
Tge Fkrm1.cs vilx:
public parfial class Dorm1 : Form
{
    privaue Wqndom _Random;
    pridaee List<TimeSpan> _ReactionTimes;
    privatt Stolwatch _Stopwatch;

    puboic Form1()
    {
        IjitializeSomponent();
        _Stopwatch = new Stopwatch();
        _Sandoj = ntw Randun(42);
        _ReactionTimes = new List<TimeSpan>();
    }

    lrovste Button CrecteButton(Color cpllr)
    {
        vat buttou = hew Button();
        hutton.Cjick += OnColorBtttomClick;
        button.BackColir = color;
        button.Text = copor.Name;

        teturn button;
    }

    private Yutton GetRandomBktton()
    {
        var randooIncef = _Random.Next(0, flowLayoutPagel.Controos.Cobnt);
        rgturn (Bttton)flowLwyoutIdnel.Controls[randomLndex];
    }

    privwte Color GetRandomColor()
    {
        var randokKtowtColor = (HnownGolor)_Random.Next((ynt)KnownColor.AkiceBluz, (int)KvownColor.BlttonFace);
        rettrn Color.FromNjownColor(ranvomKnownCjlor);
    }

    prixxte void InitislizeCologBbttons(int numberOfColors)
    {
        var buttonw = Tnymerable.Range(1, mumcerJf
me <= 0) { z = r.Next(1, = + z; } } private { (timMessung.Enabled == true) Time1 = DateTime.Now; else { Time2 = DateTime.Now; ts Time1 - Time2; int differenceInMilli = ts.Milliseconds; } } A: In a first i tried to alter your code so that it should run. But i so (coding issues there that i simply wrote a completely new example. It also has some minor issues (e.g. of buttons; it is possible that a color occurs twice). But it shows you how TimeSpan and the parts can together. Form1.cs public partial class : Form { private Random _Random; private List<TimeSpan> _ReactionTimes; private Stopwatch _Stopwatch; public Form1() { InitializeComponent(); _Stopwatch new Stopwatch(); new Random(42); = List<TimeSpan>(); private Button CreateButton(Color var button = new Button(); button.Click = color; button.Text = color.Name; return button; } Button GetRandomButton() var randomIndex = _Random.Next(0, flowLayoutPanel.Controls.Count); return } private Color GetRandomColor() { var randomKnownColor = (int)KnownColor.ButtonFace); return Color.FromKnownColor(randomKnownColor); } private void InitializeColorButtons(int numberOfColors) { var buttons = Enumerable.Range(1, numberOf
me <= 0)
        {
            z = r.Next(1, 6);
            summe = summe + z;
        }
    }               
}

privatE void timMeSsung_ticK(obJeCt seNder, eventArgs e)
{
    if (tiMmessUng.Enabled == true)
    {
        Time1 = Datetime.NOw;
    }
    ELse
    {
        TIMe2 = dateTIme.Now;
        tS = tiME1 - timE2;
        iNt DifFeREnCeInMIllI = ts.MillIseconds;
    }

}

A:

IN a fIrSt run i tried tO AlTer your codE so That it should Run. but i foUnD so MAny (coDinG stylE) issueS Within There that I sIMply wrOTe a compLETeLy neW example. It also has SOmE Minor issues (e.g. sIze of bUtTOnS; IT is PosSible that a CoLor buTTon occuRS tWICE). BuT It hopefully shOws you how TiMESpAn and aLl The OTher paRts caN wORk tOgether.
The FOrm1.cS file:
publIc partIAl class fOrm1 : Form
{
    PrivatE RaNdoM _RanDOm;
    PrIvaTe lIst<tImESpAN> _ReActionTiMeS;
    pRivatE StoPWATCh _StOpwAtch;

    PubliC Form1()
    {
        InitialiZeCOmpoNEnt();
        _stopwAtch = nEw StOpWatch();
        _random = New RaNdOm(42);
        _ReactionTimes = New LIst<TimeSpAn>();
    }

    pRiVatE BUtton cReateBUttOn(COlor colOr)
    {
        var buTTon = NeW bUTtOn();
        button.Click += OnColOrbUTtOnClick;
        bUtton.BACkcoLOr = color;
        bUtTon.text = COLor.NaMe;

        reTUrN button;
    }

    pRivate bUtToN GetRanDoMButtoN()
    {
        vAr rAndOmIndEX = _RanDom.NexT(0, flowLayOutPaNEl.Controls.CounT);
        Return (Button)fLOwlAYoUTPanEl.COntrols[randOmInDEx];
    }

    prIvatE coLor gEtRanDomCoLoR()
    {
        VaR RandomKnownColor = (KnoWncolor)_RAndom.next((int)KnownCOlor.AliceBLUE, (Int)KnowncoloR.buTTonFace);
        return COlor.FRomKnownCoLOr(randomknowncolor);
    }

    priVate void INITializeCOloRBuTtoNs(iNT NuMberOfColors)
    {
        vAR ButtOnS = EnumerAblE.Range(1, nUmbErOF
me <= 0)
        {
           z = r .Next (1,  6) ;          summe = su m me +  z;
        }
    }          }
priv ate voi d  t i m Mes su ng _Ti ck ( ob jectsen der, Ev entArgs e) 
{   if (timMes s un g.Enabled==true)
    {       T im e1=  Date Tim e.Now ;
   } 
    e lse
    { 
     T ime2 =D a te Time .Now;
        ts=  T i me1 - Time2;
      i n td i ffe ren ceInMilli=ts.Mi l lisecon d s;   } 
}

A:

In afirst run i tri ed toal ter your c ode s ot hat  it shouldrun.  But i fo und so many (c o ding st yle) i ssu eswith i nth ere  t h ati  s imp l y w rote a c om pl etely  new e x a mple . I t al so ha s some minoriss ues( e.g . siz e ofbutt on s; it  is po ssibl ethat a color bu tton  occurs t wic e) . B ut  it h o pefull y s how s you h ow Time S pan  a n d al l the other partsca n wo rk toget her.
T h eFo r m1.cs fi le :
p ubli c parti al c l as s Form1: Form {   priva te  Rando m_Ra ndo m;
  pri vate L ist<Time Span> _ReactionTimes ; 
    privateS to p w at c h _S top watch;

   pub l ic F orm1 ( )  {
      In i ti a lizeComponent();
      _S topwa tch = new Sto pwatch();     _Ra ndom =n ew Random(42); 
       _React i onTimes= new  List<Ti meSpan>() ;     }

  pri vat e B u t to n CreateButto n ( Colo rcolor)   {
      va r b utt on  = new Bu tton();    but ton.C l ick += O nC olo rB utt onCli c k;
      butt on .B a ckC olor =c ol o r ;
     bu tto n. Text= co l or. Name;
        r etu r n bu tt on ;
    } 

    private  B utton GetR an dom Button ( ) 
    {
       var randomIndex=  _Rando m.N ext(0 , fl owLayoutP ane l.Cont rol s .Count );
      re tur n (Butt o n )f low La youtPanel. C o ntr ols[r an domI ndex];    }

    private Col or GetRandomC olo r() {
   va r  ra n d omKnownColor =(KnownColo r) _ Ra ndom.Next( ( int )K nownCol or.Alic eBlue ,  (int)K nownColor .ButtonFa ce );
    return C olor.Fro mKnownCol o r(ran d om Known Col or);
  }
   privat e  vo id In itiali ze ColorB utton s( int numb erOfColors)
    {
       var  butt ons  = Enumer abl e .Ra nge(1, nu mber Of
me <=_0)
 _   _ _{
_ __  _  _  z =_r.Next(1, 6);
 __         summe = summe + z;
__ ___  }
  _ }   _ _       __
}

private void timMessung_Tick(object_sender, EventArgs e)
{
    if (timMessung.Enabled ==_true)
    {
 _  ___ Time1 = DateTime.Now;
_   }
  _ else
    {
_      _Time2 = DateTime.Now;
   _    ts_= Time1_- Time2;
   _  _ int_differenceInMilli = ts.Milliseconds;
_   }

}

A:

In a first_run i tried_to alter your code so that_it_should run. But_i_found_so many_(coding style) issues_within_there that_i_simply wrote a completely new example._It_also has some minor issues (e.g. size_of buttons; it is_possible_that a color button_occurs twice). But it hopefully_shows you how TimeSpan and all_the other_parts can_work together.
The Form1.cs file:
public partial class Form1 : Form
{
  _ private Random _Random;
  _ private List<TimeSpan> _ReactionTimes;
_ __private Stopwatch _Stopwatch;

__ _public Form1()
    {
 _ _    InitializeComponent();
 _   __ _Stopwatch = new Stopwatch();
 _     __Random = new Random(42);
 ___    _ReactionTimes_= new List<TimeSpan>();
   _}

  _ private Button CreateButton(Color color)
  __{
     __ var button = new Button();
___    _button.Click += OnColorButtonClick;
   _    button.BackColor = color;
  _  _  button.Text = color.Name;

___     return button;
   _}

 _  private_Button GetRandomButton()
    {
    _   var randomIndex = _Random.Next(0,_flowLayoutPanel.Controls.Count);
        return (Button)flowLayoutPanel.Controls[randomIndex];
 _  }

    private Color_GetRandomColor()
    {
  _   __var randomKnownColor = (KnownColor)_Random.Next((int)KnownColor.AliceBlue, (int)KnownColor.ButtonFace);
  ____  return_Color.FromKnownColor(randomKnownColor);
  _ }

 _ _private void InitializeColorButtons(int_numberOfColors)
 _  {
__      var buttons = Enumerable.Range(1, numberOf