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 C# [Load Document With Enter]

    Share
    avatar
    Mr.Bermuda
    Junior Member
    Junior Member

    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 23
    Location : Internet

    Open Help C# [Load Document With Enter]

    Post by Mr.Bermuda on Sat Oct 05, 2013 7:48 pm

    salam dobare.
    bax man mikham file load konam ba enter joda kone # ro !
    masalan man 5 ta id daram be in sheklan id1#id2#id3#id4#id5 bad mikham intor load kone idha mano az txt file
    id1
    id2
    id3
    id4
    id5
    mamnoun misham age  javab bedi KISSING 





    Trust is like an eraser,
    it gets smaller
    and smaller
    after every
    mistake !
    avatar
    virus9010
    Administrator
    Administrator

    Posts : 275
    Points : 455
    Thanks : 142
    Join date : 2013-06-06
    Age : 23
    Location : Iran , Gilan , Astara

    Open Re: Help C# [Load Document With Enter]

    Post by virus9010 on Sat Oct 05, 2013 10:45 pm

    1-aval File Ro Load Kon Tooye String
    2-Ba Yek halghe ya split joda kon , Hamin





    /* life runs on code */
    #life runs on code
    avatar
    Mr.Bermuda
    Junior Member
    Junior Member

    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 23
    Location : Internet

    Open Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda on Sat Oct 05, 2013 10:56 pm

    mehdi nafahmidam mishe cod bezari plz





    Trust is like an eraser,
    it gets smaller
    and smaller
    after every
    mistake !
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: Help C# [Load Document With Enter]

    Post by iman saeedi on Sun Oct 06, 2013 4:26 am

    mukhay to textbox intor bashan id#id#id#.. bad vaqti raft to listbox intor shan
    id
    id
    id
    ?
    avatar
    Mr.Bermuda
    Junior Member
    Junior Member

    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 23
    Location : Internet

    Open Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda on Sun Oct 06, 2013 4:29 am

    are hamintor vaghti oomadan too listbox intor beshan
    id
    id2
    id3
    id4
    id5





    Trust is like an eraser,
    it gets smaller
    and smaller
    after every
    mistake !
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: Help C# [Load Document With Enter]

    Post by iman saeedi on Sun Oct 06, 2013 4:37 am

    in code vb.net hast yani age textbox1 intor bod id#id vaqti raft to listbox1 splito hazf kon
    Code:
     Dim idt() As String
            Dim t As Integer
            idt = Split(TextBox1.Text, "#")
            ListBox2.Items.Clear()
            For t = LBound(idt) To UBound(idt)
                ListBox2.Items.Add(idt(t))
            Next t
    inam c# tabdil kardam
    Code:
    string[] idt = null;
    int t = 0;
    idt = Strings.Split(TextBox1.Text, "#");
    ListBox2.Items.Clear();
    for (t = Information.LBound(idt); t <= Information.UBound(idt); t++) {
       ListBox2.Items.Add(idt[t]);
    }
    avatar
    Mr.Bermuda
    Junior Member
    Junior Member

    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 23
    Location : Internet

    Open Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda on Sun Oct 06, 2013 12:58 pm

    Na dada Nafahmidi Manzooramo !
    Migam Vaghti Az text file document(txt) Load Kardam Yani Age Intor Boodan>

    [You must be registered and logged in to see this link.]
    Bad Vaghti oomadan Too ListBox Intori Beshan>

    [You must be registered and logged in to see this link.]





    Trust is like an eraser,
    it gets smaller
    and smaller
    after every
    mistake !
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: Help C# [Load Document With Enter]

    Post by iman saeedi on Sun Oct 06, 2013 3:52 pm

    khob code ke bet dadam hamin karo anjam mide code load ham nadari?
    avatar
    Nima
    Csharp Admin
    Csharp Admin

    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 23
    Location : Iran-AmoL

    Open Re: Help C# [Load Document With Enter]

    Post by Nima on Sun Oct 06, 2013 5:00 pm


    salam doste khobam . listBox harchi bere tosh ba hamon code doste azizemon iman jan , besorate enter mishe . Ama jori ke to migi aslan textBox nadarim ke split konim . bayad # bad az load filet Replase koni be \n ya inke begi be # resid ++ be meqdare add itemet ezafe kone ta ye enter bere jolo . vaqtesho nadaram sorce kamel bedam. sory dasham Boos





    avatar
    Nima
    Csharp Admin
    Csharp Admin

    Posts : 210
    Points : 326
    Thanks : 56
    Join date : 2013-07-08
    Age : 23
    Location : Iran-AmoL

    Open Re: Help C# [Load Document With Enter]

    Post by Nima on Mon Oct 07, 2013 6:52 am


    Dasham inu emtehan kon shayad beshe :

    Code:

    private void btnLoadFile_Click(object sender, EventArgs e)
            {
                try
                {
                    OpenFileDialog Open = new OpenFileDialog();

                    Open.ShowDialog();

                    if (File.Exists(Open.FileName))
                    {
                        var nima = new StreamReader(Open.FileName);

                        listBox1.Items.Clear();

                        do
                        {
                            string IDS = nima;

                            IDS.Replace("#", "\n");

                            listBox1.Items.Add(IDS);
                        }

                        while (nima != null);

                    }

                }

                catch { }


    Good Luck





    avatar
    Mr.Bermuda
    Junior Member
    Junior Member

    Posts : 114
    Points : 214
    Thanks : 24
    Join date : 2013-07-12
    Age : 23
    Location : Internet

    Open Re: Help C# [Load Document With Enter]

    Post by Mr.Bermuda on Mon Oct 07, 2013 8:16 am

    Duroqin wrote:

    Dasham inu emtehan kon shayad beshe :

    Code:

    private void btnLoadFile_Click(object sender, EventArgs e)
            {
                try
                {
                    OpenFileDialog Open = new OpenFileDialog();

                    Open.ShowDialog();

                    if (File.Exists(Open.FileName))
                    {
                        var nima = new StreamReader(Open.FileName);

                        listBox1.Items.Clear();

                        do
                        {
                            string IDS = nima;

                            IDS.Replace("#", "\n");

                            listBox1.Items.Add(IDS);
                        }

                        while (nima != null);

                    }

                }

                catch { }


    Good Luck
    Na Dasham In Error Dad
    Code:
    Cannot implicitly convert type 'System.IO.StreamReader' to 'string'





    Trust is like an eraser,
    it gets smaller
    and smaller
    after every
    mistake !
    avatar
    Mostafa Haghighi
    Super Moderator
    Super Moderator

    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Open Re: Help C# [Load Document With Enter]

    Post by Mostafa Haghighi on Sun Oct 13, 2013 2:04 pm

    Code:
                try
                {
                    System.Windows.Forms.OpenFileDialog openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
                    if (File.Exists(openFileDialog1.FileName))
                    {
                        var sr = new StreamReader(openFileDialog1.FileName);
                        string str = sr.ReadToEnd();
                        string[] IDS = str.Split('#');
                        for (int i = 0; i < IDS.Length; ++i)
                        {
                            listBox1.Items.Add(IDS[i]);
                        }
                    }
                    else
                    {
                        MessageBox.Show("Error");
                    }

                }
                catch
                {

                }






    Fighting For Fun!


    Sponsored content

    Open Re: Help C# [Load Document With Enter]

    Post by Sponsored content


      Current date/time is Mon Oct 23, 2017 6:31 am