Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    help notepad dar c#

    Share
    avatar
    saman1993
    New Member
    New Member

    Posts : 5
    Points : 11
    Thanks : 0
    Join date : 2014-04-27

    Open help notepad dar c#

    Post by saman1993 on Mon May 05, 2014 1:57 pm

    salam be hameye dostane gol
    khob kotah begam
    mikham ye notepade sade benevisam ke beshe tosh
    ba rast click copy,paste va cut anjam dad
    mamnon misham age kasi komakaam kone
    movaffaq bashid  Gol 
    avatar
    ma3ta
    Csharp Admin
    Csharp Admin

    Posts : 109
    Points : 156
    Thanks : 21
    Join date : 2013-06-10

    Open Re: help notepad dar c#

    Post by ma3ta on Mon May 05, 2014 4:27 pm

    salam

    ye ToolStripMenuItem b formt ezafe kon va ba code hay zir mitoni (copy,past,select all,remove all va... ro b rahati anjam bedi age moshkeli bod dar khedmatam!

    omidvaram manzort in bashe  Cheshmak 


    Code:
    private void cutToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    StringBuilder sb = new StringBuilder();
                    //Selected Items
            
                   List<object> selectedItemList = new List<object>();

                    foreach (object row in listBox1.SelectedItems)
                    {
                        sb.Append(row.ToString());
                        sb.AppendLine();
                        
                        
                        selectedItemList.Add(row);
                    }

                    sb.Remove(sb.Length - 1, 1);  
                    
                    Clipboard.SetData(System.Windows.Forms.DataFormats.Text, sb.ToString());

                
                    foreach (object ln in selectedItemList)
                    {
                        listBox1.Items.Remove(ln);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            private void copyToolStripMenuItem_Click(object sender, EventArgs e)
            {
                 try
                {
                    StringBuilder sb = new StringBuilder();
    //copy
                    foreach (object row in listBox1.SelectedItems)
                    {
                        sb.Append(row.ToString());
                        sb.AppendLine();
                    }
                    sb.Remove(sb.Length - 1, 1);
                    Clipboard.SetData(System.Windows.Forms.DataFormats.Text, sb.ToString());
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
              
                   string s = Clipboard.GetText();
    //past
                
                   string[] lines = s.Split('\n');

                    foreach (string ln in lines)
                    {
                        listBox1.Items.Add(ln.Trim());
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    listBox1.SelectedItems.Clear();
    //select all
                    for (int i = 0; i < listBox1.Items.Count; i++)
                    {
                        listBox1.SetSelected(i, true);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }

            private void clearAllToolStripMenuItem_Click(object sender, EventArgs e)
            {
    //clear all
                listBox1.Items.Clear();
            }

          
       }

    ya haq









    گاهی سکوت بلندترین فریاد است
    و زمان صادق ترین قاضی...
    پس در درگاه زمان سکوت میکنیم
    شاید
    حکمی به نفع ما صادر شود

    [/font]

    Ma3ta.Enabled = True;
    avatar
    Mehdi izadi
    Administrator
    Administrator

    Posts : 793
    Points : 1182
    Thanks : 288
    Join date : 2013-06-06
    Age : 25
    Location : Iran,Hormozgan,Bandare Lengeh

    Open Re: help notepad dar c#

    Post by Mehdi izadi on Thu May 08, 2014 6:24 am

    saman1993 wrote:salam be hameye dostane gol
    khob kotah begam
    mikham ye notepade sade benevisam ke beshe tosh
    ba rast click copy,paste va cut anjam dad
    mamnon misham age kasi komakaam kone
    movaffaq bashid  Gol 

    Salam Saman Jan.
    Dooste Aziz Age Search Karde Boodi
    2-3 Ta Topic , Anva'e Source Va Hata Amoozeshe Videoii Ham Peyda Mikardi.
    Lotfan Ghabl Az Topic Zadan Search Konid.
    [You must be registered and logged in to see this link.]
    In Ro Bebin Tooye Khodesh Hamechi Ro Ja Dade  Hiss 
    avatar
    saman1993
    New Member
    New Member

    Posts : 5
    Points : 11
    Thanks : 0
    Join date : 2014-04-27

    Open Re: help notepad dar c#

    Post by saman1993 on Thu May 08, 2014 7:22 am

    salam mehdi jan
    nemidonestam dadash
    chashm az in be bad aval search mikonam
    mc az rahnamaeit  Cheshmak 

    Sponsored content

    Open Re: help notepad dar c#

    Post by Sponsored content

      Similar topics

      -

      Current date/time is Thu Jun 22, 2017 9:04 pm