sx  [ Profile ]

Sort by: Date / Title /

  1. 1 month ago
    1. //u must fill the lvi.Tag = personItem; in ListviewFill method before
    2.        
    3.         private void viewRelease_MouseClick(object sender, MouseEventArgs e)
    4.         {
    5.             ListView lvSender = (ListView)sender;
    6.             var perSender = (Person)lvSender.SelectedItems[0].Tag;
    7.  
    8.             if (e.Button == MouseButtons.Right)
    9.             {
    10.                 foreach (var item in PersonList)
    11.                 {
    12.                     if(item.Name.Equals(perSender.Name))
    13.                     MessageBox.Show(perSender.Name);
    14.                     //copy Clipboard
    15.                     if (perSender.Name!= null) Clipboard.SetDataObject(perSender.Name, true);
    16.                 }
    17.             }
    18.         }
  2. 1 month ago
    1. ALTER TABLE `test`  ENGINE = [INNODB | MyIsam]
  3. 1 month ago
    1. preg_replace('/\\s{2,}/',' ',$string);
  4. sponsorised links
  5. 1 month ago and saved by 1 other
    1. /* A font by Jos Buivenga (exljbris) -> www.exljbris.nl */
    2. @font-face {
    3.           font-family: “Fertigo”;
    4.           src: url(http://www.taptaptap.com/Fertigo.otf)
    5.                   format(”opentype”);
    6. }
  6. 1 month ago
    1. SELECT MAX(id) FROM TABLE;
  7. 2 months ago
    1. SELECT LAST_INSERT_ID();
  8. 3 months ago
    1. < !--[if IE 6]> = explizit Version IE 6    /  (explizit)
    2. < !--[if !IE 6]> = not -Operator   /  (to negate)
    3. < !--[if lt IE 6]> = kleiner als   /  (Less Than)
    4. < !--[if lte IE 6]> = kleiner oder   /  (less or equal)
    5. < !--[if gt IE 6]> = groesser als   /  (greater than)
    6. < !--[if gte IE 6]> = groesser oder gleich   / (greater or equal)
  9. 4 months ago
    1. /*
    2. event
    3. <modifier> event <delegate_name> <event_name>
    4.  
    5. delegate
    6. <modifier> delegate (datatyp void, int...) <delegate_name>
    7.  
    8. binding event to delegate
    9. <name_event> += new <delegate_name>(objectName.methodName);
    10. */
    11.  
    12. /* example */
    13. Public delegate void MyDelegate(String s);
    14. class Myclass
    15. {
    16.     Public event MyDelegate MyEvent;
    17.    
    18. Public void doEvent()
    19.     {
    20.         if (MyEvent != null)
    21.         {
    22.             MyEvent("Hello World");
    23.         }
    24.     }
    25. }
    26.  
    27. class Output
    28. {
    29.     Public void hello(String s)
    30.     {
    31.         Console.WriteLine(s);
    32.     }
    33. }
    34.  
    35. Main()
    36. {
    37.     Output o  = new Output();
    38.     MyClass mc = new MyClass();
    39.    
    40.     mc.MyEvent = new MyDelegate(o.hello);
    41.     mc.DoEvent;
    42. }
  10. 4 months ago
    1. /*method validateZipCode*/
    2.         public bool validatePLZ(string PLZ)
    3.         {
    4.             string plzPattern = @"^(D-)?\d{5}$";
    5.             Regex re = new Regex(plzPattern);
    6.             Match ma = re.Match(PLZ);
    7.             if (ma.Success)
    8.                 return true;
    9.             else
    10.                 return false;
    11.         }
  11. 4 months ago
    1. /*method validateMail*/
    2.         public bool validateMail(string Mailadress)
    3.         {
    4.             string mailPattern = @"^[\w\._]{1,}@[\w\._]{2,}\.\w{2,4}$”;
    5.             Regex re = new Regex(mailPattern);
    6.             Match ma = re.Match(Mailadress);
    7.             if (ma.Success)
    8.                 return true;
    9.             else
    10.                 return false;
    11.         }

First / Previous / Next / Last / Page 1 of 4 (35 posteets)