25 Mart 2014 Salı

Turkish Characters HTML Codes


LetterNumerical CodeDescription
ÇÇCapital c-cedilla
ççLowercase c-cedilla
ĞĞCapital g-breve
ğğLowercase g-breve
İİCapital i-dotted
ııLowercase i-dotless
ÖÖCapital o-umlaut
ööLowercase o-umlaut
ŞŞCapital s-cedilla
şşLowercase s-cedilla
ÜÜCapital u-umlaut
üüLowercase u-umlaut

6 Aralık 2013 Cuma

filling checkedListBox value member and text

  Filling checkedListBox
       
            List<CheckBoxItems> listCboxItems = new List<CheckBoxItems>();

            CheckBoxItems item = new CheckBoxItems();

            item.dataId = 1;
            item.Name = "evren";
            item.IsChecked = false;
            listCboxItems.Add(item);

            item = new CheckBoxItems();
            item.dataId = 2;
            item.Name = "ali";
            item.IsChecked = false;
            listCboxItems.Add(item);

           
            ((ListBox)this.checkedListBox1).DataSource = listCboxItems;
            ((ListBox)this.checkedListBox1).DisplayMember = "Name";
            ((ListBox)this.checkedListBox1).ValueMember = "dataId";

          for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                CheckBoxItems obj = (CheckBoxItems)checkedListBox1.Items[i];
                checkedListBox1.SetItemChecked(i, obj.IsChecked);
            }

  Find out checked items

           foreach (CheckBoxItems item in checkedListBox1.CheckedItems)
            {
                string itemchecked = item.Name;
                MessageBox.Show(itemchecked); 
            }




 checkedListBox listItems class

    public class CheckBoxItems
    {
        public  bool IsChecked { get; set; }
        public  string Name { get; set; }
        public  int dataId { get; set; }
        public CheckBoxItems(){
           this.IsChecked = false;
        }

    }


evren pehlivan

http://www.tmrservisi.com/

filling checkedListBox value member and text, setting checkedListBox value member and text, populating checkedListBox value member and text, filling checkedListBox Items

22 Ağustos 2013 Perşembe

Getting string between strings in a line

private IEnumerable<string> GetSubStrings(string input, string start, string end)
{
   Regex r = new Regex(Regex.Escape(start) + "(.*?)" + Regex.Escape(end));
   MatchCollection matches = r.Matches(input);
         foreach (Match match in matches)
                yield return match.Groups[1].Value;
        }

19 Temmuz 2013 Cuma

Extracting string between two string


 private static string ExtractName(this string src, string findfrom, string findto)
        {
            int start = src.IndexOf(findfrom);
            int to = src.IndexOf(findto, start + findfrom.Length);
            if (start < 0 || to < 0) return "";
            string s = src.Substring(
                           start + findfrom.Length,
                           to - start - findfrom.Length);
            return s;
        }

evren pehlivan yazılım

evren pehlivan yazılım, evren pehlivan yazılım geliştirici